funcs without () like print
Scott David Daniels
scott.daniels at acm.org
Fri Dec 8 01:05:53 EST 2006
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-
functions," you should change your wishes.
If, however, you are talking solely about the interactive prompt and
ease of typing, you might want to check out ipython (find via your
favorite search tool). Its flexibility may well be to your taste.
--Scott David Daniels
scott.daniels at acm.org
More information about the Python-list
mailing list