[Python-Dev] __del__ and tp_dealloc in the IO lib

Christian Heimes lists at cheimes.de
Mon Jan 19 00:53:53 CET 2009


Brett Cannon schrieb:
> Fine by me. People should be using the context manager for guaranteed
> file closure anyway IMO.

You make a very good point! Perhaps we should stop promising that files
get closed as soon as possible and encourage people in using the with
statement.

Christian



More information about the Python-Dev mailing list