functions without parentheses
Robert Kern
rkern at ucsd.edu
Thu Jul 28 04:02:48 EDT 2005
Jerry He wrote:
> Hi,
> Is it possible to create a function that you can use
> without parenthesizing the arguments? for example, for
>
> def examine(str):
> .....
> .....
>
> Is there some way to define it so that I can call it
> like
>
> examine "string"
> instead of examine("string")?
No.
--
Robert Kern
rkern at ucsd.edu
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter
More information about the Python-list
mailing list