Message154697
| Author |
Yury.Selivanov |
| Recipients |
Yury.Selivanov, docs@python, georg.brandl, rhettinger |
| Date |
2012年03月01日.15:07:08 |
| SpamBayes Score |
1.0435083e-06 |
| Marked as misclassified |
No |
| Message-id |
<1330614429.57.0.59180427723.issue14167@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|