Kaydet (Commit) 77cec6ea authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix typo

üst 99c48a8d
...@@ -1284,12 +1284,12 @@ Other Language Changes ...@@ -1284,12 +1284,12 @@ Other Language Changes
Here are all of the changes that Python 2.6 makes to the core Python language. 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, * The :func:`hasattr` function was catching and ignoring all errors,
under the assumption that they meant a :meth:`__getattr__` method has under the assumption that they meant a :meth:`__getattr__` method
failing somewhere and the return value of :func:`hasattr` would therefore was failing somewhere and the return value of :func:`hasattr` would
be ``False``. This logic shouldn't be applied to therefore be ``False``. This logic shouldn't be applied to
:exc:`KeyboardInterrupt` and :exc:`SystemExit`, however; Python 2.6 will :exc:`KeyboardInterrupt` and :exc:`SystemExit`, however; Python 2.6
no longer discard such exceptions when :func:`hasattr` encounters them. will no longer discard such exceptions when :func:`hasattr`
(Fixed by Benjamin Peterson; :issue:`2196`.) encounters them. (Fixed by Benjamin Peterson; :issue:`2196`.)
* When calling a function using the ``**`` syntax to provide keyword * When calling a function using the ``**`` syntax to provide keyword
arguments, you are no longer required to use a Python dictionary; arguments, you are no longer required to use a Python dictionary;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment