]> granicus.if.org Git - python/commitdiff
Nits
authorRaymond Hettinger <python@rcn.com>
Thu, 6 Jan 2011 02:08:30 +0000 (02:08 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 6 Jan 2011 02:08:30 +0000 (02:08 +0000)
Doc/whatsnew/3.2.rst

index 47da029b9c2e87dd32320f47098a2adc4333d447..ca404a323696cea7573250ce396fb91c2c81dccf 100644 (file)
@@ -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::