[Python-ideas] re-organizing the sys module

Barry Warsaw barry at python.org
Thu Mar 13 21:03:53 CET 2014


On Mar 13, 2014, at 02:04 PM, Serhiy Storchaka wrote:

>Many sys attributes (argv, displayhook, excepthook, modules, path,
>path_hooks, path_importer_cache, ps1, ps2, stderr, stdin, stdout,
>tracebacklimit) are used implicit in builtins and in interpreter core. Even
>import system doesn't work without the sys module. So it should be
>initialized very early and finalized very late.

If the C API PySys_* functions were updated to use _sys instead, hopefully
most stuff in the core would still work, right?

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140313/c06a142f/attachment.sig>


More information about the Python-ideas mailing list