Re: functions without parentheses
- From: Steve Holden <steve@xxxxxxxxxxxxx>
- Date: Thu, 28 Jul 2005 15:12:48 +0100
Simon Dahlbacka wrote [about function calls without parenthesis]:
If you actually want that kind of syntax, then why don't you use Visual Basic? ;)
Because Perl is far too tempting to ignore.
The serious answer to the OP's question, however, is that Python refuses to guess whether a function reference not followed by a left parenthesis is a reference to a function or a reference to the result of calling the function. Perl and VB(Script) make more use of context, in ways that confuse many users.
Time for someone to try
import this
regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/
.
- References:
- functions without parentheses
- From: Jerry He
- Re: functions without parentheses
- From: Simon Dahlbacka
- functions without parentheses
- Prev by Date: baffling error-handling problem
- Next by Date: Re: On fighting fire with fire...
- Previous by thread: Re: functions without parentheses
- Next by thread: Re: functions without parentheses
- Index(es):
Relevant Pages
|