iwl wrote:
> Hello can I make funktions callable without () like print
> at time the interpreter seems to printout the adres when I type the
> function without ()
As everyone else has already told you, print is a statement, not a
function. If you want your source code to use these "self-calling-
iwl wrote:
> Hello can I make funktions callable without () like print
> at time the interpreter seems to printout the adres when I type the
> function without ()
Hi iwl,
its one of the python fundamentals when dealing with functions.
function_name without the () refers to the function object,
print is supposed to become a function in Py3k, though.
On 12/7/06, Georg Brandl <[EMAIL PROTECTED]> wrote:
iwl wrote:
> Hello can I make funktions callable without () like print
> at time the interpreter seems to printout the adres when I type the
> function without ()
print is not a functio
iwl wrote:
> Hello can I make funktions callable without () like print
> at time the interpreter seems to printout the adres when I type the
> function without ()
print is not a function, it's a statement, and as such equivalent to
raise or assert.
Georg
--
http://mail.python.org/mailman/listinf
"iwl" <[EMAIL PROTECTED]> 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 re
Hello can I make funktions callable without () like print
at time the interpreter seems to printout the adres when I type the
function without ()
--
http://mail.python.org/mailman/listinfo/python-list