@@ -306,23 +306,27 @@ defines. It returns a sorted list of strings::
306306 >>> dir(fibo)
307307 ['__name__', 'fib', 'fib2']
308308 >>> dir(sys) # doctest: +NORMALIZE_WHITESPACE
309- ['__displayhook__', '__doc__', '__excepthook__', '__loader__', '__name__',
310- '__package__', '__stderr__', '__stdin__', '__stdout__',
311- '_clear_type_cache', '_current_frames', '_debugmallocstats', '_getframe',
312- '_home', '_mercurial', '_xoptions', 'abiflags', 'api_version', 'argv',
313- 'base_exec_prefix', 'base_prefix', 'builtin_module_names', 'byteorder',
314- 'call_tracing', 'callstats', 'copyright', 'displayhook',
315- 'dont_write_bytecode', 'exc_info', 'excepthook', 'exec_prefix',
316- 'executable', 'exit', 'flags', 'float_info', 'float_repr_style',
317- 'getcheckinterval', 'getdefaultencoding', 'getdlopenflags',
318- 'getfilesystemencoding', 'getobjects', 'getprofile', 'getrecursionlimit',
319- 'getrefcount', 'getsizeof', 'getswitchinterval', 'gettotalrefcount',
309+ ['__breakpointhook__', '__displayhook__', '__doc__', '__excepthook__',
310+ '__interactivehook__', '__loader__', '__name__', '__package__', '__spec__',
311+ '__stderr__', '__stdin__', '__stdout__', '__unraisablehook__',
312+ '_clear_type_cache', '_current_frames', '_debugmallocstats', '_framework',
313+ '_getframe', '_git', '_home', '_xoptions', 'abiflags', 'addaudithook',
314+ 'api_version', 'argv', 'audit', 'base_exec_prefix', 'base_prefix',
315+ 'breakpointhook', 'builtin_module_names', 'byteorder', 'call_tracing',
316+ 'callstats', 'copyright', 'displayhook', 'dont_write_bytecode', 'exc_info',
317+ 'excepthook', 'exec_prefix', 'executable', 'exit', 'flags', 'float_info',
318+ 'float_repr_style', 'get_asyncgen_hooks', 'get_coroutine_origin_tracking_depth',
319+ 'getallocatedblocks', 'getdefaultencoding', 'getdlopenflags',
320+ 'getfilesystemencodeerrors', 'getfilesystemencoding', 'getprofile',
321+ 'getrecursionlimit', 'getrefcount', 'getsizeof', 'getswitchinterval',
320322 'gettrace', 'hash_info', 'hexversion', 'implementation', 'int_info',
321- 'intern', 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path',
322- 'path_hooks', 'path_importer_cache', 'platform', 'prefix', 'ps1',
323- 'setcheckinterval', 'setdlopenflags', 'setprofile', 'setrecursionlimit',
324- 'setswitchinterval', 'settrace', 'stderr', 'stdin', 'stdout',
325- 'thread_info', 'version', 'version_info', 'warnoptions']
323+ 'intern', 'is_finalizing', 'last_traceback', 'last_type', 'last_value',
324+ 'maxsize', 'maxunicode', 'meta_path', 'modules', 'path', 'path_hooks',
325+ 'path_importer_cache', 'platform', 'prefix', 'ps1', 'ps2', 'pycache_prefix',
326+ 'set_asyncgen_hooks', 'set_coroutine_origin_tracking_depth', 'setdlopenflags',
327+ 'setprofile', 'setrecursionlimit', 'setswitchinterval', 'settrace', 'stderr',
328+ 'stdin', 'stdout', 'thread_info', 'unraisablehook', 'version', 'version_info',
329+ 'warnoptions']
326330
327331Without arguments, :func: `dir ` lists the names you have defined currently::
328332
0 commit comments