this module provides access to some objects used or maintained by the interpreter and to functions that interact strongly with the interpreter dynamic objectsargv -command line argumentsargv[ is the script pathname if known path -module search pathpath[ is the script directoryelse 'modules -dictionary of loaded modules lots of lines deleted here the help function is one interface provided by the pydoc system--standard library code that ships with python and renders documentation (documentation stringsas well as structural detailsrelated to an object in formatted way the format is either like unix manpagewhich we get for helpor an html pagewhich is more grandiose it' handy way to get basic information when working interactivelyand it' last resort before falling back on manuals and books custom paging script the help function we just met is also fairly fixed in the way it displays informationalthough it attempts to page the display in some contextsits page size isn' quite right on some of the machines use moreoverit doesn' page at all in the idle guiinstead relying on manual use if the scrollbar--potentially painful for large displays when want more control over the way help text is printedi usually use utility script of my ownlike the one in example - example - pp \system\more py ""split and interactively page string or file of text ""def more(textnumlines= )lines text splitlines(like split('\ 'but no 'at end while lineschunk lines[:numlineslines lines[numlines:for line in chunkprint(lineif lines and input('more?'not in [' '' ']break if __name__ ='__main__'import sys more(open(sys argv[ ]read() when runnot imported page contents of file on cmdline the meat of this file is its more functionand if you know enough python to be qualified to read this bookit should be fairly straightforward it simply splits up string around end-line charactersand then slices off and displays few lines at time ( by defaultto avoid scrolling off the screen slice expressionlines[: ]gets the first items in listand lines[ :gets the restto show different number of lines each timesystem scripting overview