[Python-ideas] sys.py
Guido van Rossum
guido at python.org
Wed Sep 13 00:30:54 EDT 2017
More information about the Python-ideas mailing list
Wed Sep 13 00:30:54 EDT 2017
- Previous message (by thread): [Python-ideas] sys.py
- Next message (by thread): [Python-ideas] sys.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I find this a disturbing trend. I think we have bigger fish to fry and this sounds like it could slow down startup. On Tue, Sep 12, 2017 at 8:35 PM, Nick Coghlan <ncoghlan at gmail.com> wrote: > On 13 September 2017 at 09:46, Eric Snow <ericsnowcurrently at gmail.com> > wrote: > > The sys module is a rather special case as far as modules go. It is > > effectively a "console" into the interpreter's internal state and that > > includes some mutable state. Since it is a module, we don't have much > > of an opportunity to: > > > > * validate values assigned to its attributes [1] > > * issue DeprecationWarning for deprecated attrs [2] > > * alias attrs [2] > > * replace get (and get/set) functions with properties > > * re-organize sys [3] > > +1 from me, specifically because there are edge cases we don't > generally test (e.g. folks rebinding sys.modules to nonsense), and it > would be nice to be able to upgrade those from "don't do that" to "the > obvious way of doing that just plain isn't allowed". > > Cheers, > Nick. > > -- > Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia > _______________________________________________ > Python-ideas mailing list > Python-ideas at python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ > -- --Guido van Rossum (python.org/~guido) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-ideas/attachments/20170912/d69178f1/attachment.html>
- Previous message (by thread): [Python-ideas] sys.py
- Next message (by thread): [Python-ideas] sys.py
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list