Patches item #1563842, was opened at 2006-09-23 03:59
Message generated for change (Comment added) made by lemburg
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1563842&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Anthony Baxter (anthonybaxter)
Assigned to: M.-A. Lemburg (lemburg)
Summary: platform.py support for IronPython

Initial Comment:
The following patch supplies minimal support for
IronPython in platform.py - it makes the sys.version
parsing not choke and die. There's a bunch of missing
information from IronPython's sys.version string, not
much that can be done there. 

Should platform.py grow an 'implementation' option, so
it can detect whether it's IronPython, CPython, Jython,
or something else?


Patch is against svn trunk.


----------------------------------------------------------------------

>Comment By: M.-A. Lemburg (lemburg)
Date: 2007-01-13 15:39

Message:
Logged In: YES 
user_id=38388
Originator: NO

sanxiyn: What do the extra numbers after the 1.0 stand for ? Do those
correspond to branch and revision ?

Armin: I'll add support for sys.version_info and sys.subversion as well.


----------------------------------------------------------------------

Comment By: Seo Sanghyeon (sanxiyn)
Date: 2006-10-10 04:35

Message:
Logged In: YES 
user_id=837148

The current patch doesn't parse sys.version from IronPython
1.0.1.

IronPython 1.0 gives: IronPython 1.0.60816 on .NET 2.0.50727.42

IronPython 1.0.1 gives: IronPython 1.0 (1.0.61005.1977) on
.NET 2.0.50727.42

----------------------------------------------------------------------

Comment By: Armin Rigo (arigo)
Date: 2006-10-10 00:48

Message:
Logged In: YES 
user_id=4771

Python2.5 has grown a sys.subversion attribute:

   ('CPython', 'trunk', '51999')

The first field is intended to describe the exact
implementation of Python.  platform.py could
return this if it is available.  It should also
probably try to use sys.version_info instead of,
or in addition to, using a regexp on sys.version.
One can hope that in the long term the
version_info and the subversion attributes
should eventually be supported by all Python
implementation (PyPy...).

----------------------------------------------------------------------

Comment By: M.-A. Lemburg (lemburg)
Date: 2006-09-25 12:30

Message:
Logged In: YES 
user_id=38388

Thanks.

I'll install IronPython and see what else needs to be done.

I've already added a few fixes to make Jython play nice with
platform.py that I'll check in as well.

And yes: I'll add a python_implementation() function that
returns 'CPython', 'Jython' and 'IronPython' as appropriate.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1563842&group_id=5470
_______________________________________________
Patches mailing list
Patches@python.org
http://mail.python.org/mailman/listinfo/patches

Reply via email to