[Python-checkins] peps: PEP 455: add BDFL-Delegate and fix some minor typos.
georg.brandl
python-checkins at python.org
Tue Oct 8 15:41:01 CEST 2013
http://hg.python.org/peps/rev/95652a7f9bc1
changeset: 5178:95652a7f9bc1
user: gbrandl
date: Tue Oct 08 15:40:45 2013 +0200
summary:
PEP 455: add BDFL-Delegate and fix some minor typos.
files:
pep-0455.txt | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/pep-0455.txt b/pep-0455.txt
--- a/pep-0455.txt
+++ b/pep-0455.txt
@@ -3,6 +3,7 @@
Version: $Revision$
Last-Modified: $Date$
Author: Antoine Pitrou <solipsis at pitrou.net>
+BDFL-Delegate: Raymond Hettinger
Status: Draft
Type: Standards Track
Content-Type: text/x-rst
@@ -40,15 +41,15 @@
``str.lower`` or ``str.casefold`` in the former example and the built-in
``id`` function in the latter.
-(it could be said that the pattern *projects* keys from the user-visible
-set onto the internal lookup set)
+(It could be said that the pattern *projects* keys from the user-visible
+set onto the internal lookup set.)
Semantics
=========
TransformDict is a ``MutableMapping`` implementation: it faithfully
-implements the well-known API of mutable mappings, as ``dict`` itself
+implements the well-known API of mutable mappings, like ``dict`` itself
and other dict-like classes in the standard library. Therefore, this PEP
won't rehash the semantics of most TransformDict methods.
@@ -83,7 +84,7 @@
Constructor
-----------
-As shown in the example aboves, creating a TransformDict requires passing
+As shown in the examples above, creating a TransformDict requires passing
the key transformation function as the first argument (much like creating
a ``defaultdict`` requires passing the factory function as first argument).
@@ -110,7 +111,7 @@
File "<stdin>", line 1, in <module>
KeyError: 'bar'
-The method name ``getitem()`` mirrors the standard ``popitem()`` method
+The method name ``getitem()`` follows the standard ``popitem()`` method
on mutable mappings.
Getting the transformation function
@@ -263,6 +264,7 @@
This document has been placed in the public domain.
+
..
Local Variables:
mode: indented-text
--
Repository URL: http://hg.python.org/peps
More information about the Python-checkins
mailing list