funcs without () like print

Fredrik Lundh fredrik at pythonware.com
Thu Dec 7 09:42:26 EST 2006


"iwl" <Ingo.Wolf at gmx.de> wrote:

> Hello can I make funktions callable without ()

no, not really.

> like print at time the interpreter seems to printout the adres when I type the
> function without ()

the interpreter does repr() on the object (which calls the __repr__ method),
and prints the result.

</F> 






More information about the Python-list mailing list