'warnoptions''winver'the dir function simply returns list containing the string names of all the attributes in any object with attributesit' handy memory jogger for modules at the interactive prompt for examplewe know there is something called sys versionbecause the name version came back in the dir result if that' not enoughwe can always consult the __doc__ string of built-in modulessys __doc__ "this module provides access to some objects used or maintained by the\ninterpre ter and to functions that interact strongly with the interpreter \ \ndynamic obj ects:\ \nargv -command line argumentsargv[ is the script pathname if known \npath -module search pathpath[ is the script directoryelse ''\nmodules -dictionary of loaded modules\ \ndisplayhook -called to show results in an lots of text deleted here paging documentation strings the __doc__ built-in attribute just shown usually contains string of documentationbut it may look bit weird when displayed this way--it' one long string with embedded end-line characters that print as \nnot as nice list of lines to format these strings for more humane displayyou can simply use print function-call statementprint(sys __doc__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 print built-in functionunlike interactive displaysinterprets end-line characters correctly unfortunatelyprint doesn'tby itselfdo anything about scrolling or paging and so can still be unwieldy on some platforms tools such as the built-in help function can do betterhelp(syshelp on built-in module sysname sys file (built-inmodule docs system tools