Bugs item #1669743, was opened at 2007-02-27 08:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1669743&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: Python Library
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Kay Hayen (kayhayen2)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python needs a way to detect implementation

Initial Comment:
Hello,

I am currently writing an application that will run under both CPython and 
PyPy. In this I encountered the need to discover the implementation of the 
current interpreter.

For example, with PyPy the use of StringIO may offer benefits due to the 
possibility of more complete analysis of data flows during compilation or JIT 
execution. I want to take advantage of this. (Granted, currently pypy will run 
on top of CPython most of the time, so it's not the real solution to my problem 
until PyPy-c is at comparable performance). This is only example, a lot of 
different performance behaviors exist, that at times, will make sense to be 
abstracted.

I have checked module sys of both implementations (plus Jython) and found in 
CPython only the property "subversion", which contains a tuple with CPython 
being the first element. My suspect is though that this is related to the 
detail of using svn in CPython development, and as such, would not be a good 
standard. 

So, what I believe with more and more Python versions existing (e.g. 
IronPython), it is needed to have sys.implementation that puts sys.version into 
context. My proposal is that CPython leads the effort to aid this, and the 
other Python variants can then adopt the standard property.

Thank you in advance,
Kay Hayen

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1669743&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to