[Python-Dev] a new type for sys.implementation (original) (raw)

Eric Snow ericsnowcurrently at gmail.com
Fri Jun 1 18:11:31 CEST 2012


On Fri, Jun 1, 2012 at 6:07 AM, Nick Coghlan <ncoghlan at gmail.com> wrote:

There may be other CPython-specific fields currently in sys.version that it makes sense to also include in sys.implementation, but: 1. That's as well as, not instead of 2. It's something that can be looked at after the initial implementation of the PEP has been checked in (and should only be done with a concrete use case, such as eliminating sys.version introspection in other parts of the stdlib or in third party code)

Precisely. The PEP addresses this point directly:

http://www.python.org/dev/peps/pep-0421/#adding-new-required-attributes

-eric



More information about the Python-Dev mailing list