[Python-checkins] r64572 - python/trunk/Doc/whatsnew/2.6.rst

benjamin.peterson python-checkins at python.org
Sat Jun 28 15:18:15 CEST 2008


Author: benjamin.peterson
Date: Sat Jun 28 15:18:14 2008
New Revision: 64572

Log:
fix typo

Modified:
   python/trunk/Doc/whatsnew/2.6.rst

Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst	(original)
+++ python/trunk/Doc/whatsnew/2.6.rst	Sat Jun 28 15:18:14 2008
@@ -1284,12 +1284,12 @@
 Here are all of the changes that Python 2.6 makes to the core Python language.
 
 * The :func:`hasattr` function was catching and ignoring all errors,
-  under the assumption that they meant a :meth:`__getattr__` method has 
-  failing somewhere and the return value of :func:`hasattr` would therefore
-  be ``False``.  This logic shouldn't be applied to 
-  :exc:`KeyboardInterrupt` and :exc:`SystemExit`, however; Python 2.6 will
-  no longer discard such exceptions when :func:`hasattr` encounters them.
-  (Fixed by Benjamin Peterson; :issue:`2196`.)
+  under the assumption that they meant a :meth:`__getattr__` method
+  was failing somewhere and the return value of :func:`hasattr` would
+  therefore be ``False``.  This logic shouldn't be applied to
+  :exc:`KeyboardInterrupt` and :exc:`SystemExit`, however; Python 2.6
+  will no longer discard such exceptions when :func:`hasattr`
+  encounters them.  (Fixed by Benjamin Peterson; :issue:`2196`.)
 
 * When calling a function using the ``**`` syntax to provide keyword
   arguments, you are no longer required to use a Python dictionary;


More information about the Python-checkins mailing list