Fully Bracketed Syntax
bjorn
bjorn at roguewave.com
Fri Feb 11 12:48:41 EST 2000
Gerrit Holl wrote:
> Eaglestone, Robert NGC:B918:EXCH" wrote on 950195591:
> > Hello all,
> ...
> > if ( foo > bar )
> > do_something();
> > do_something_else();
> > done();
> > endif
>
> Let me add two characters, and it's totally valid.
>
> if ( foo > bar ):
> do_something();
> do_something_else();
> done();
> #endif
Ahh.... Python does have bracketed syntax, only using ':' and '#'
instead of '{' and '}' <g>
if foo:
bar()
#
-b
More information about the Python-list
mailing list