summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2007-12-03 19:49:54 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2007-12-03 19:49:54 (GMT)
commitbd5b6232572ea518dc6a16c9ce99b3f0b6ba6c59 (patch)
treeb98506450fffff1d74a506cdf81269b9ee5857fd /Doc/whatsnew
parent6b449f4f2bd86c104a8b57547428eb9bb3a182b0 (diff)
downloadcpython-bd5b6232572ea518dc6a16c9ce99b3f0b6ba6c59.zip
cpython-bd5b6232572ea518dc6a16c9ce99b3f0b6ba6c59.tar.gz
cpython-bd5b6232572ea518dc6a16c9ce99b3f0b6ba6c59.tar.bz2
Two small fixes. Issue 1547.
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/2.6.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index 1fa1ef8..99c23bd 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -108,7 +108,7 @@ PEP 343: The 'with' statement
The previous version, Python 2.5, added the ':keyword:`with`'
statement an optional feature, to be enabled by a ``from __future__
-import generators`` directive. In 2.6 the statement no longer need to
+import with_statement`` directive. In 2.6 the statement no longer need to
be specially enabled; this means that :keyword:`with` is now always a
keyword. The rest of this section is a copy of the corresponding
section from "What's New in Python 2.5" document; if you read
@@ -481,7 +481,7 @@ Here are all of the changes that Python 2.6 makes to the core Python language.
of strings containing the names of valid attributes for the object,
and lets the object control the value that :func:`dir` produces.
Objects that have :meth:`__getattr__` or :meth:`__getattribute__`
- methods.
+ methods can use this to advertise pseudo-attributes they will honor.
.. % Patch 1591665