[Python-checkins] peps: PEP 345: platform.python_implementation is now an authorised environment marker.

alexis.metaireau python-checkins at python.org
Sun May 1 16:52:03 CEST 2011


http://hg.python.org/peps/rev/a09a267ab612
changeset: 3871:a09a267ab612
user: Alexis Metaireau <alexis at notmyidea.org>
date: Sun May 01 15:51:51 2011 +0100
summary:
 PEP 345: platform.python_implementation is now an authorised environment marker.
This allows to target some specific python implementations (such as cpython/pypy/jython) when describing PEP 345 fields
files:
 pep-0345.txt | 1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/pep-0345.txt b/pep-0345.txt
--- a/pep-0345.txt
+++ b/pep-0345.txt
@@ -483,6 +483,7 @@
 - sys.platform = sys.platform
 - platform.version = platform.version()
 - platform.machine = platform.machine()
+- platform.python_implementation = platform.python_implementation()
 - a free string, like ``'2.4'``, or ``'win32'``
 
 Notice that ``in`` is restricted to strings, meaning that it is not possible
-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /