From 90a4b3162e6a6c39519d5b3c1be39accbf568db6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 6 Jan 2011 02:08:30 +0000 Subject: Nits --- Doc/whatsnew/3.2.rst | 9 ++++----- 1 file 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:: -- cgit v0.12