Forgetting "()" when calling methods

Erik Max Francis max at alcyone.com
Sun Apr 27 01:26:44 EDT 2003


Jeremy Fincher wrote:

> Perhaps the answer is to remove the __nonzero__ method on
> functions/methods.  Logically, what purpose does it serve?

	# f holds a callable object or None
	if f:
	    f(...)

-- 
 Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Death to all fanatics!
\__/ Malaclypse the Younger
    Kepler's laws / http://www.alcyone.com/max/physics/kepler/
 A proof of Kepler's laws.




More information about the Python-list mailing list