[Let's try this again since my last reply was rejected for being too large]<div><br></div><div><div class="adM" style><div class="im" style="color:rgb(80,0,80)">On Mon, Jun 4, 2012 at 9:52 AM, barry.warsaw <span dir="ltr"><<a href="mailto:python-checkins@python.org" target="_blank" style="color:rgb(17,85,204)">python-checkins@python.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><a href="http://hg.python.org/cpython/rev/9c445f4695c1" target="_blank" style="color:rgb(17,85,204)">http://hg.python.org/cpython/rev/9c445f4695c1</a><br>
changeset: 77339:9c445f4695c1<br>parent: 77328:0808cb8c60fd<br>user: Barry Warsaw <<a href="mailto:barry@python.org" target="_blank" style="color:rgb(17,85,204)">barry@python.org</a>><br>date: Sun Jun 03 16:18:47 2012 -0400<br>
summary:<br> Eric Snow's implementation of PEP 421.<br><br>Issue 14673: Add sys.implementation<br><br>files:<br> Doc/library/sys.rst | 38 ++++<br> Doc/library/types.rst | 24 ++<br> Include/Python.h | 1 +<br>
Include/namespaceobject.h | 17 +<br> Lib/test/test_sys.py | 18 ++<br> Lib/test/test_types.py | 143 ++++++++++++++++-<br> Lib/types.py | 1 +<br> <a href="http://makefile.pre.in/" target="_blank" style="color:rgb(17,85,204)">Makefile.pre.in</a> | 2 +<br>
Objects/namespaceobject.c | 225 ++++++++++++++++++++++++++<br> Objects/object.c | 3 +<br> Python/sysmodule.c | 72 ++++++++-<br> 11 files changed, 541 insertions(+), 3 deletions(-)<br><br><br>diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst<br>
--- a/Doc/library/sys.rst<br>+++ b/Doc/library/sys.rst<br>@@ -616,6 +616,44 @@<br><br> Thus ``2.1.0a3`` is hexversion ``0x020100a3``.<br><br>+<br>+.. data:: implementation<br>+<br>+ An object containing the information about the implementation of the<br>
+ currently running Python interpreter. Its attributes are the those<br></blockquote><div><br></div></div></div><div style>"the those" -> "those"</div><div class="im" style><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
+ that all Python implementations must implement.</blockquote><div><br></div></div><div style>Should you mention that VMs are allowed to add their own attributes that are not listed?</div><div class="im" style><div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"> They are described<br>+ below.<br>+<br>+ *name* is the implementation's identifier, like ``'cpython'``.<br>
</blockquote><div><br></div></div><div style>Is this guaranteed to be lowercase, or does it simply happen to be lowercase in this instance?</div><div class="im" style><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
+<br>+ *version* is a named tuple, in the same format as<br>+ :data:`sys.version_info`. It represents the version of the Python<br>+ *implementation*. This has a distinct meaning from the specific<br>+ version of the Python *language* to which the currently running<br>
+ interpreter conforms, which ``sys.version_info`` represents. For<br>+ example, for PyPy 1.8 ``sys.implementation.version`` might be<br>+ ``sys.version_info(1, 8, 0, 'final', 0)``, whereas ``sys.version_info``<br>
+ would be ``sys.version_info(1, 8, 0, 'final', 0)``.</blockquote><div><br></div></div><div style>I think you meant to say ``sys.version_info(2, 7, 2, 'final', 0)``.</div><div style><div class="adm" style="margin:5px 0px">
<div id="q_137b7ee10acb05d2_9" class="ajR h4" style="color:rgb(80,0,80);font-size:11px;background-color:rgb(241,241,241);border:1px solid rgb(221,221,221);clear:both;line-height:6px;outline:none;width:20px"><div class="ajT" style="background-image:url('https://ssl.gstatic.com/ui/v1/icons/mail/ellipsis.png');height:8px;width:20px;background-repeat:no-repeat no-repeat">
</div></div></div></div><div style>What's with the ~?</div><div style><br></div><div style>-Brett</div></div>