From: Raymond Hettinger Date: Thu, 6 Jan 2011 02:08:30 +0000 (+0000) Subject: Nits X-Git-Tag: v3.2rc1~159 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90a4b3162e6a6c39519d5b3c1be39accbf568db6;p=python Nits --- diff --git a/Doc/whatsnew/3.2.rst b/Doc/whatsnew/3.2.rst index 47da029b9c..ca404a3236 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::