Regarding exception handling

Aggelos I. Orfanakos aorfanakos at gmail.com
Mon Jan 31 02:38:21 EST 2005


Coming from C, I think that it's generally a good programming practice
to make sure everything you create, closes; whether it's about a socket
or a file. This may not be the case with Python though. To be honest,
leaving this task to the garbage collector doesn't sound like a good
idea to me (since the language gives you the means to do it yourself).




More information about the Python-list mailing list