Spell-checked.

This commit is contained in:
Barry Warsaw 2012-05-25 14:13:23 -04:00
parent c9a869d496
commit 30f90b96c0
1 changed files with 7 additions and 8 deletions

View File

@ -52,8 +52,7 @@ Proposal
We will add a new attribute to the ``sys`` module, called We will add a new attribute to the ``sys`` module, called
``sys.implementation``, as an object with attribute-access (as opposed ``sys.implementation``, as an object with attribute-access (as opposed
to a mapping). It will contain contain implementation-specific to a mapping). It will contain implementation-specific information.
information.
The attributes of this object will remain fixed during interpreter The attributes of this object will remain fixed during interpreter
execution and through the course of an implementation version. This execution and through the course of an implementation version. This
@ -72,7 +71,7 @@ with discretion, as described in `Adding New Required Attributes`_.
While this PEP places no other constraints on ``sys.implementation``, While this PEP places no other constraints on ``sys.implementation``,
it also recommends that no one rely on capabilities outside those it also recommends that no one rely on capabilities outside those
described here. The only exception to that recommendation is for described here. The only exception to that recommendation is for
attributes starting with an underscore. Implementors may use those attributes starting with an underscore. Implementers may use those
as appropriate to store per-implementation data. as appropriate to store per-implementation data.
@ -84,7 +83,7 @@ library and language definition will rely, meaning implementers must
define them: define them:
**name** **name**
A lower-case identifer representing the implementation. Examples A lower-case identifier representing the implementation. Examples
include 'pypy', 'jython', 'ironpython', and 'cpython'. include 'pypy', 'jython', 'ironpython', and 'cpython'.
**version** **version**
@ -117,7 +116,7 @@ All proposals for new required attributes will go through the normal
PEP process. Such a PEP need not be long, just long enough. It will PEP process. Such a PEP need not be long, just long enough. It will
need to sufficiently spell out the rationale for the new attribute, need to sufficiently spell out the rationale for the new attribute,
its use cases, and the impact it will have on the various Python its use cases, and the impact it will have on the various Python
implemenations. implementations.
Version Format Version Format
@ -295,7 +294,7 @@ The Problem With ``sys.(version|version_info|hexversion)``
Earlier versions of this PEP made the mistake of calling Earlier versions of this PEP made the mistake of calling
``sys.version_info`` (and friends) the version of the Python language, ``sys.version_info`` (and friends) the version of the Python language,
in contrast to the implementation. However, this is not the case. in contrast to the implementation. However, this is not the case.
Instead, it is the version of the CPython implementation. Incidently, Instead, it is the version of the CPython implementation. Incidentally,
the first two components of ``sys.version_info`` (major and minor) also the first two components of ``sys.version_info`` (major and minor) also
reflect the version of the language definition. reflect the version of the language definition.
@ -311,7 +310,7 @@ implementation will definitely help to clarify the distinction from the
language version. language version.
Feedback From Other Python Implementors Feedback From Other Python Implementers
======================================= =======================================
IronPython IronPython
@ -386,7 +385,7 @@ small as possible.
However, as already noted, many other efforts predate However, as already noted, many other efforts predate
``sys.implementation``. Neither is it necessarily a major part of the ``sys.implementation``. Neither is it necessarily a major part of the
effort. Rather, consider it as part of the infrastructure of the effort. Rather, consider it as part of the infrastructure of the
effort to make Python friendler to alternate implementations. effort to make Python friendlier to alternate implementations.
Alternatives Alternatives