File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments