def _list(api_list_class, arg_namespace, **extra):
if arg_namespace.starting_point:<EOL><INDENT>ordering_field = (arg_namespace.ordering or '<STR_LIT>').lstrip('<STR_LIT:->')<EOL>if ordering_field in ('<STR_LIT>', '<STR_LIT>', '<STR_LIT>'):<EOL><INDENT>arg_namespace.starting_point = parser.parse(<EOL>arg_namespace.starting_point)<EOL><DEDENT><DEDENT>items = api_list_class(<EOL>starting_point=arg_namespace.starting_point,<EOL>ordering=arg_namespace.ordering,<EOL>limit=arg_namespace.limit,<EOL>request_limit=arg_namespace.request_limit,<EOL>**extra<EOL>)<EOL>items.constructor = lambda x: x<EOL>try:<EOL><INDENT>pprint(list(items))<EOL><DEDENT>except ValueError as e:<EOL><INDENT>print(e)<EOL><DEDENT>
A common function for building methods of the "list showing".