[Python-checkins] r77320 - peps/trunk/pep-0345.txt
georg.brandl
python-checkins at python.org
Wed Jan 6 10:14:44 CET 2010
Author: georg.brandl
Date: Wed Jan 6 10:14:44 2010
New Revision: 77320
Log:
Fix example, and clarify string literal syntax.
Modified:
peps/trunk/pep-0345.txt
Modified: peps/trunk/pep-0345.txt
==============================================================================
--- peps/trunk/pep-0345.txt (original)
+++ peps/trunk/pep-0345.txt Wed Jan 6 10:14:44 2010
@@ -470,7 +470,7 @@
Requires-Dist: pywin32 (>1.0); sys.platform == 'win32'
Obsoletes-Dist: pywin31; sys.platform == 'win32'
- Requires-Dist: foo (1,!=1.3); os.machine == 'i386'
+ Requires-Dist: foo (1,!=1.3); platform.machine == 'i386'
Requires-Dist: bar; python_version == '2.4' or python_version == '2.5'
Requires-External: libxslt; 'linux' in sys.platform
@@ -491,7 +491,7 @@
- sys.platform = sys.platform
- platform.version = platform.version()
- platform.machine = platform.machine()
-- a free string, like ``2.4``, or ``win32``
+- a free string, like ``'2.4'``, or ``'win32'``
Notice that ``in`` is restricted to strings, meaning that it is not possible
to use other sequences like tuples or lists on the right side.
More information about the Python-checkins
mailing list