pytho****@googl*****
pytho****@googl*****
2012年 12月 31日 (月) 18:18:52 JST
Status: New Owner: ---- New issue 622 by xwhhs****@gmail*****: try説明の「以前のバージョンの Python では」部分 http://code.google.com/p/python-doc-ja/issues/detail?id=622 URL、あるいはファイル名は? http://docs.python.jp/2.7/reference/compound_stmts.html#finally どんな問題ですか? Changed in version 2.5: In previous versions of Python, try...except...finally did not work. try...except had to be nested in try...finally. これ、過去形なので、 ×「 try...except は try...finally 中でネストされなければいけません。.」 ○「 try...except は try...finally 中でネストされなければいけませんでし た。.」 として欲しいです。今でもそうなのかと誤解しそうです。 (初見で「バージョン 2.5 で変更」から続けて字句通り読むと「バージョン2.5で「 ネストすることによって try...except...finally が可能になった」」とすら読めて しまいます。そんなわけはないですよね。)