[Python-Dev] [Python-checkins] cpython (3.4): Issue #23840: tokenize.open() now closes the temporary binary file on error to

Yury Selivanov yselivanov.ml at gmail.com
Tue May 26 15:30:38 CEST 2015



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


More information about the Python-Dev mailing list