benjamin peterson mfphjffbrfsvyrjfgmailcom long conversation stdlibsig list id like bring peps mailing list guido expressed lukewarmness well 05 idea however id still like comments first pep pep xxx title cleaning sys interpreter module version revision lastmodified date author benjamin peterson status draft type standards track contenttype textxrst created 4april2008 pythonversion 30 abstract pep proposes new lowlevel module cpythonspecific interpreter functions order clean sys module separate general python functionality implementation details rationale sys module currently contains functions data put two major groups 1 data functions available python implementations deal general running python virtual machine argv byteorder path path_hooks meta_path path_importer_cache modules copyright hexversion version version_info displayhook __displayhook__ excepthook __excepthook__ exc_info exc_clear exec_prefix prefix executable exit flags py3kwarning dont_write_bytecode warn_options getfilesystemencoding getsetprofile getsettrace call_tracing getwindowsversion maxint maxunicode platform ps1 ps2 stdin stderr stdout __stdin__ __stderr__ __stdout__ tracebacklimit 2 data functions affect cpython interpreter getsetrecursionlimit getsetcheckinterval _getframe _current_frame getrefcount getsetdlopenflags settscdumps api_version winver dllhandle float_info _compact_freelists _clear_type_cache subversion builtin_module_names callstats intern second collections items steadily increasing years causing clutter sys guido even said doesnt recognize things bug1522_ implementations clearly struggled contents sys cant implement must retain compatibility example jythons sys module dud setgetrecursionlimit functions moving items items another module would send clear message functions need need implemented also proposed contents types module distributed across standard library typesremoval_ interpreter module would provide excellent resting place internal types like frames code objects specification new builtin module named interpreter see naming_ added second list items split stdlib follows interpreter module getsetrecursionlimit getsetcheckinterval _getframe _current_frame getsetdlopenflags settscdumps api_version winver dllhandle float_info _clear_type_cache subversion builtin_module_names callstats intern gc module getrefcount _compact_freelists transition plan implemented 3x interpreter module backported 26 py3k warnings added sys functions replaces open issues move dont_write_bytecode believe writing bytecode implementation detail moved bytecodeissue_ counterargument current complete python implementations write sort bytecode valuable able disable also moved wish put imp module move imp noted dont_write_bytecode maybe builtin_module_names might fit nicely imp module naming author proposes name interpreter new module pyvm also suggested pyvmname_ name cpython well liked cpythonname_ references bug1522 httpbugspythonorgissue1522 typesremoval httpmailpythonorgpipermailstdlibsig2008april000172html bytecodeissue httpmailpythonorgpipermailstdlibsig2008april000217html pyvmname httpmailpythonorgpipermailpython30002007november011351html cpythonname httpmailpythonorgpipermailstdlibsig2008april000223html copyright document placed public domain local variables mode indentedtext indenttabsmode nil sentenceenddoublespace fillcolumn 70 coding utf8 end cheers benjamin peterson thu 07 aug 2008 044508 0500 python3000 pep cleaning sys interpreter module