[Python-Dev] [Python-checkins] cpython (3.4): Issue #23840: tokenize.open() now closes the temporary binary file on error to (original) (raw)
Yury Selivanov yselivanov.ml at gmail.com
Tue May 26 15:30:38 CEST 2015
- Previous message (by thread): [Python-Dev] [Python-checkins] cpython (3.4): Issue #23840: tokenize.open() now closes the temporary binary file on error to
- Next message (by thread): [Python-Dev] Embedded Python. Debug Version and _ctypes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2015-05-26 3:54 AM, Victor Stinner wrote:
2015-05-26 8:44 GMT+02:00 Serhiy Storchaka <storchaka at gmail.com>:
No, finally is not correct there. buffer shouldn't be closed if no exception is raised. Yep. The binary file must only be closed in case of error, as written in the commit message.
Right. My bad, sorry Victor ;)
Yury
- Previous message (by thread): [Python-Dev] [Python-checkins] cpython (3.4): Issue #23840: tokenize.open() now closes the temporary binary file on error to
- Next message (by thread): [Python-Dev] Embedded Python. Debug Version and _ctypes
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]