Re:Python hasattr() Considered Harmful
by kqr on Thursday January 14, 2016 @03:17AM
(#10900161)
It depends on how you use it! If you use it to acquire the resource, as in
then generally the answer is no, since that is the same thing as the equivalent `try…finally`. If someone removes the file after it's being opened it will not be completely wiped until it's closed.
[ Parent
| on HN ]
There are no comments on this comment yet.