[issue6388] platform.python_implementation does not work on IronPython

Thomas Bleier report at bugs.python.org
Tue Jun 30 13:27:46 CEST 2009


New submission from Thomas Bleier <thomas at bleier.at>:

platform.python_implementation as of CPython 2.6 does not work on
IronPython 2.0.1

It obviously crashes because it fails determining that it run's on
IronPython.

>>> platform.python_implementation()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\IronPython2\Lib\platform.py", line 1409, in python_implementation
  File "C:\IronPython2\Lib\platform.py", line 1359, in _sys_version
ValueError: failed to parse CPython sys.version: '2.5.0 (IronPython 2.0
(2.0.0.0) on .NET 2.0.50727.4918)'

----------
components: Library (Lib)
messages: 89917
nosy: tbleier
severity: normal
status: open
title: platform.python_implementation does not work on IronPython
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6388>
_______________________________________


More information about the Python-bugs-list mailing list