Adding print-style function calls, and preproc plugins
piet at cs.uu.nl
piet at cs.uu.nl
Fri Aug 31 06:29:25 EDT 2001
>>>>> gerson.kurz at t-online.de (Gerson Kurz) (GK) writes:
GK> 1) normally, you call functions in python like this:
GK> name '(' arg { ',' arg } ')'
GK> however, 'print' is a special function in that its arguments can be
GK> written without enclosing brackets.
It is not *can*, it is *must*.
I.e. print (a,b) is different from print a,b
GK> Wouldn't it be nice if you *could*
GK> call your "normal" functions in the same way? Would that require too
GK> much of a change to the python language?
So what would blob (a,b) mean? Is the argument (a,b) or are there two
arguments a and b?
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list