Areas vary because Python 3 is more advanced. :)
The scope for bar begins with indentation of try and ends after the last sentence in its except clause (or in the finally section there was one); naked raise clearly in the stanza of foo except , and this is what is being rereformed.
This is one of those little things that were fixed in Python 3. Documents can be sharper.
source share