Message154697
I think that the documentation should put more emphasis on the `return` statement in a `finally` block.
Example:
def test():
try:
1/0
finally:
return 10
>>> test()
10
I think we need to add a warning, or at least a note, that 'return' masks exceptions, if any occurred. |
|
Date |
User |
Action |
Args |
2012-03-01 15:07:09 | Yury.Selivanov | set | recipients:
+ Yury.Selivanov, georg.brandl, rhettinger, docs@python |
2012-03-01 15:07:09 | Yury.Selivanov | set | messageid: <1330614429.57.0.59180427723.issue14167@psf.upfronthosting.co.za> |
2012-03-01 15:07:08 | Yury.Selivanov | link | issue14167 messages |
2012-03-01 15:07:08 | Yury.Selivanov | create | |
|