How to avoid "f.close" (no parens) bug?
Batista, Facundo
FBatista at uniFON.com.ar
Wed Feb 11 11:42:00 EST 2004
Eric Brunel wrote:
#- You may be able to call some "real" code just by accessing
#- an attribute by using
#- properties. I'm not quite sure, and I can't check because I
#- have only Python 2.1
#- here.
Jeff Epler wrote:
#- For another, there may be legitimate uses, when it's specifically to
#- cause the side effect that computation of the property requires
#- (especially in the context of software testing). For instance, see
#- http://weblogs.mozillazine.org/hyatt/archives/2003_08.html#003963
#- Personally, I view the fact that javascript (apparently) requires
#- assigment to a dummy variable as a drawback of js.
Thank you Jeff & Eric.
I think these are valid cases and because of them, we can not forbide the
use of such lines.
Thanks again.
. Facundo
More information about the Python-list
mailing list