diff options
author | Raymond Hettinger <python@rcn.com> | 2011-01-06 02:08:30 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-01-06 02:08:30 (GMT) |
commit | 90a4b3162e6a6c39519d5b3c1be39accbf568db6 (patch) | |
tree | a5d6815c5d9c9c8a541966a64293efbbc52771e1 | |
parent | 3df46211008b994224652a6160b13478dbc04115 (diff) | |
download | cpython-90a4b3162e6a6c39519d5b3c1be39accbf568db6.zip cpython-90a4b3162e6a6c39519d5b3c1be39accbf568db6.tar.gz cpython-90a4b3162e6a6c39519d5b3c1be39accbf568db6.tar.bz2 |
Nits
-rw-r--r-- | Doc/whatsnew/3.2.rst | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 47da029..ca404a3 100644 --- a/Doc/whatsnew/3.2.rst +++ b/Doc/whatsnew/3.2.rst @@ -428,10 +428,10 @@ Some smaller changes made to the core Python language are: * 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 @@ Some smaller changes made to the core Python language are: (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:: |