Search code examples
pythonpaginationttypydoc

Continue after running help() in Python interactive session


I run the following code in Python Interactive Session and try to get help on the method 'load' from json but i don't know to continue my instructions after (END),

Here is my code:

import json
help(json.load)

And here is what I got:

...
 result of any object literal decode (a ``dict``). The return value of
    ``object_hook`` will be used instead of the ``dict``. This feature
    can be used to implement custom decoders (e.g. JSON-RPC class hinting).

    ``object_pairs_hook`` is an optional function that will be called with the
    result of any object literal decoded with an ordered list of pairs.  The
    return value of ``object_pairs_hook`` will be used instead of the ``dict``.
    This feature can be used to implement custom decoders.  If ``object_hook``
    is also defined, the ``object_pairs_hook`` takes priority.

    To use a custom ``JSONDecoder`` subclass, specify it with the ``cls``
    kwarg; otherwise ``JSONDecoder`` is used.
(END)

Can you help how to continue after (END)? (Because I can't type my next instruction.)


Solution

  • Press q for quit.

    I couldn't find this documented, but here it is in the source code of pydoc's pager.

    Note: The (END) text hints that pydoc may be delegating to another program, less, for pagination on your platform. However, the same shortcut key should work.