Fixed option name (-3, not --python3).

This commit is contained in:
Alex Martelli 2007-08-25 19:52:12 +00:00
parent c055387b71
commit 18d4b92843
1 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ implies any of the following:
PEP-writing is time-consuming, so when a number of PEP-writing is time-consuming, so when a number of
backwards-incompatible changes are closely related, they should be backwards-incompatible changes are closely related, they should be
proposed in the same PEP. Such PEPs will likely have longer proposed in the same PEP. Such PEPs will likely have longer
Compatibility Issues sections however, since they must now describe Compatibility Issues sections, however, since they must now describe
the sorts of breakage expected from *all* the proposed changes. the sorts of breakage expected from *all* the proposed changes.
@ -89,14 +89,14 @@ In addition to the PEP requirement, backwards incompatible changes to
Python must also be accompanied by code to issue warnings for pieces Python must also be accompanied by code to issue warnings for pieces
of Python 2.X code that will behave differently in Python 3000. Such of Python 2.X code that will behave differently in Python 3000. Such
warnings will be enabled in Python 2.X using a new command-line warnings will be enabled in Python 2.X using a new command-line
switch: --python3. All backwards incompatible changes should be switch: -3. All backwards incompatible changes should be
accompanied by a patch for Python 2.X that, when --python3 is accompanied by a patch for Python 2.X that, when -3 is
specified, issues warnings for each construct that is being changed. specified, issues warnings for each construct that is being changed.
For example, if ``dict.keys()`` returns an iterator in Python 3000, For example, if ``dict.keys()`` returns an iterator in Python 3000,
the patch to the Python 2.X branch should do something like: the patch to the Python 2.X branch should do something like:
If --python3 was specified, change ``dict.keys()`` to return a If -3 was specified, change ``dict.keys()`` to return a
subclass of ``list`` that issues warnings whenever you use any subclass of ``list`` that issues warnings whenever you use any
methods other than ``__iter__()``. methods other than ``__iter__()``.