[Python-ideas] re-organizing the sys module
Serhiy Storchaka
storchaka at gmail.com
Fri Mar 14 07:55:04 CET 2014
13.03.14 22:03, Barry Warsaw написав(ла):
> 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?
Perhaps. If sys attributes will be writable properties which updates _sys.
More information about the Python-ideas
mailing list