comments added

This commit is contained in:
Ahmed Ossama 2021-08-04 02:18:49 +02:00 committed by GitHub
parent 730627f581
commit 771e2ef167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,6 +45,26 @@ def parse_html_list(dictionary, prefix='', default=None):
{'foo': 'hij', 'bar': 'klm'} {'foo': 'hij', 'bar': 'klm'}
] ]
[{
'[0]': 'abc',
'[1]': 'def',
'[2]': 'hij'
},
{
'[3]': 'lmn',
'[4]': 'opq',
'[5]': 'rst'}
]
-->
[
'abc',
'def',
'hij',
'lmn',
'opq',
'rst',
]
:returns a list of objects, or the value specified in ``default`` if the list is empty :returns a list of objects, or the value specified in ``default`` if the list is empty
""" """
if isinstance(dictionary, (list, tuple)): if isinstance(dictionary, (list, tuple)):