which one of these is better?
Sybren Stuvel
sybrenUSE at YOURthirdtower.com.imagination
Thu Oct 26 14:22:27 EDT 2006
John Salerno enlightened us with:
> Hmm, looks like this doesn't work anyway if open() doesn't work,
> because then f.close() raises an UnboundLocalError for obvious
> reasons.
Neither work 100% correct, actually. If the file can be located and
opened, but not read, the message
Could not locate the file "labtables.sql" File Not Found
is plain wrong.
Sybren
--
Sybren Stüvel
Stüvel IT - http://www.stuvel.eu/
More information about the Python-list
mailing list