[Python-ideas] PEP 4XX: Adding sys.implementation

Steven D'Aprano steve at pearwood.info
Thu May 3 05:49:59 CEST 2012


On Wed, May 02, 2012 at 08:17:40PM -0600, Eric Snow wrote:
> On Mon, Apr 30, 2012 at 3:04 PM, Barry Warsaw <barry at python.org> wrote:
> > On Apr 27, 2012, at 12:36 AM, Eric Snow wrote:
> >>Version Format
> >>--------------
> >>
> >>XXX same as sys.version_info?
> >
> > Why not? :)  It might be useful also to have something similar to
> > sys.hexversion, which I often find convenient.
> 
> Would it be worth mirroring all 3 (sys.version, sys.version_info,
> sys.hexversion)?  Symmetry is nice, but it also makes sense if the
> each would be as meaningful as they are in sys.

I am still unclear what justification there is for having a separate 
sys.version (from PEP 421: "the version of the Python language") and 
sys.implementation.version ("the version of the Python implementation"). 
Under what circumstances will one change but not the other?


-- 
Steven




More information about the Python-ideas mailing list