
On 2008-04-08 20:06, Antoine Pitrou wrote:
Le mardi 08 avril 2008 à 13:42 -0400, Jim Jewett a écrit :
If important information is in the interpreter-specific location, it would be nice to know where that is. That could be a specific module name, but a module-name-pattern might be enough.
sys.interpreter=cpython (or pypy_js_43, or whatever is chosen) <==> cpython_vm (or pypy_js_43_vm) is the module for internals
Then why not: sys.interpreter_module = cpython <=> cpython ?sys.interpreter_module = pypy_vm <=> pypy_vm ?sys.interpreter_module = org.baked.beans.jython <=> ?org.?baked.beans.jython :)
ie. those targets which choose to use a "_vm" suffix make it explicit rather than imposing that naming upon everyone ?
We already have a way to identify the Python implementation and it works for CPython, IronPython and Jython:
import platform platform.python_implementation() 'CPython'
-- Marc-Andre Lemburg eGenix.com Professional Python Services directly from the Source (#1, Apr 08 2008)
Python/Zope Consulting and Support ... http://www.egenix.com/ mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/ mxODBC, mxDateTime, mxTextTools ... http://python.egenix.com/
:::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! :::: eGenix.com Software, Skills and Services GmbH Pastor-Loeh-Str.48 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg Registered at Amtsgericht Duesseldorf: HRB 46611