Re: functions without parentheses



Jerry He wrote:
def examine(str):
     .....
     .....

Is there some way to define it so that I can call it
like

examine "string" instead of examine("string")?

What do you want to happen when someone types:

    examine

???  Or better yet, what if you do something like:

    map(examine, list_of_strs)

??? Should examine be called with no arguments? Or should it be passed as a function object to map?

STeVe
.



Relevant Pages

  • Re: OT Re: Hiding variables passed via URL
    ... Jerry, I do not want to take sides in this flame war. ... NO WAY IS CHUCK THE SAME ... PERSON AS STEVE. ... He's afraid for people to find out who he really is - probably ...
    (comp.lang.php)
  • Re: OT Re: Hiding variables passed via URL
    ... Jerry, I do not want to take sides in this flame war. ... NO WAY IS CHUCK THE SAME ... PERSON AS STEVE. ... He's afraid for people to find out who he really is - probably ...
    (comp.lang.php)
  • Re: OT Re: Hiding variables passed via URL
    ... Jerry, I do not want to take sides in this flame war. ... NO WAY IS CHUCK THE SAME PERSON AS STEVE. ... Besides, if Steve wanted to say those things about you, he CERTAINLY would have used his own name. ... Maybe he's afraid the people at the church he's attending will find out the truth about him. ...
    (comp.lang.php)
  • Re: OT Re: Hiding variables passed via URL
    ... Jerry, I do not want to take sides in this flame war. ... NO WAY IS CHUCK THE SAME PERSON ... Besides, if Steve ...
    (comp.lang.php)
  • Re: OT Re: Hiding variables passed via URL
    ... Jerry, I do not want to take sides in this flame war. ... NO WAY IS CHUCK THE SAME PERSON ... Steve wanted to say those things about you, ...
    (comp.lang.php)