[Python-Dev] del and tp_dealloc in the IO lib (original) (raw)
Christian Heimes lists at cheimes.de
Mon Jan 19 00:53:53 CET 2009
- Previous message: [Python-Dev] __del__ and tp_dealloc in the IO lib
- Next message: [Python-Dev] __del__ and tp_dealloc in the IO lib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] __del__ and tp_dealloc in the IO lib
- Next message: [Python-Dev] __del__ and tp_dealloc in the IO lib
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]