[Python-checkins] r87782 - python/branches/py3k/Doc/whatsnew/3.2.rst
raymond.hettinger
python-checkins at python.org
Thu Jan 6 03:08:30 CET 2011
Author: raymond.hettinger
Date: Thu Jan 6 03:08:30 2011
New Revision: 87782
Log:
Nits
Modified:
python/branches/py3k/Doc/whatsnew/3.2.rst
Modified: python/branches/py3k/Doc/whatsnew/3.2.rst
==============================================================================
--- python/branches/py3k/Doc/whatsnew/3.2.rst (original)
+++ python/branches/py3k/Doc/whatsnew/3.2.rst Thu Jan 6 03:08:30 2011
@@ -428,10 +428,10 @@
* The :func:`hasattr` function works by calling :func:`getattr` and detecting
whether an exception is raised. This technique allows it to detect methods
created dynamically by :meth:`__getattr__` or :meth:`__getattribute__` which
- would be absent from the class dictionary. Formerly, *hasattr* would catch
- any exception, possibly masking genuine errors in those methods. Now,
- *hasattr* has been tightened to only catch :exc:`AttributeError` and let
- other exceptions pass through.
+ would otherwise be absent from the class dictionary. Formerly, *hasattr*
+ would catch any exception, possibly masking genuine errors. Now, *hasattr*
+ has been tightened to only catch :exc:`AttributeError` and let other
+ exceptions pass through.
(Discovered by Yury Selivanov and fixed by Benjamin Peterson; :issue:`9666`.)
@@ -459,7 +459,6 @@
(Added by Antoine Pitrou; :issue:`9757`.)
-
* Previously it was illegal to delete a name from the local namespace if it
occurs as a free variable in a nested block::
More information about the Python-checkins
mailing list