Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90a4b31

Browse files
committed
Nits
1 parent 3df4621 commit 90a4b31

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Doc/whatsnew/3.2.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -428,10 +428,10 @@ Some smaller changes made to the core Python language are:
428428
* The :func:`hasattr` function works by calling :func:`getattr` and detecting
429429
whether an exception is raised. This technique allows it to detect methods
430430
created dynamically by :meth:`__getattr__` or :meth:`__getattribute__` which
431-
would be absent from the class dictionary. Formerly, *hasattr* would catch
432-
any exception, possibly masking genuine errors in those methods. Now,
433-
*hasattr* has been tightened to only catch :exc:`AttributeError` and let
434-
other exceptions pass through.
431+
would otherwise be absent from the class dictionary. Formerly, *hasattr*
432+
would catch any exception, possibly masking genuine errors. Now, *hasattr*
433+
has been tightened to only catch :exc:`AttributeError` and let other
434+
exceptions pass through.
435435

436436
(Discovered by Yury Selivanov and fixed by Benjamin Peterson; :issue:`9666`.)
437437

@@ -459,7 +459,6 @@ Some smaller changes made to the core Python language are:
459459

460460
(Added by Antoine Pitrou; :issue:`9757`.)
461461

462-
463462
* Previously it was illegal to delete a name from the local namespace if it
464463
occurs as a free variable in a nested block::
465464

0 commit comments

Comments
 (0)