[docs] [issue21366] Document that return in finally overwrites prev value
R. David Murray
report at bugs.python.org
Fri May 2 20:45:35 CEST 2014
R. David Murray added the comment:
The precisionist in me isn't quite happy, but any wording I've come up with to make it more precise isn't as informative :) (The 'real' situation is that the return value of the function is determined by the last return statement executed, which in turn is determined by the try/finally logic....but as far as I can see the suggested phrasing is equivalent to that in every respect that matters).
I also have an impulse to add "so don't do that" :)
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21366>
_______________________________________
More information about the docs
mailing list