two ideoms at one blow: line-reading and regexp-matching

Simon Brunning SBrunning at trisystems.co.uk
Wed Feb 20 10:52:17 EST 2002


> From:	Russell Nelson [SMTP:nelson at crynwr.com]
>  > Assignments and expressions are different things in Python...
> 
> Indeed, and that's a good thing.  But I'm proposing an alternate
> syntax for the if statement, specifically:
> 	"if" <variable> "=" <expression":.
 
So the assignment (the <variable> "=" <assignment> bit) looks to see if it's
in an 'if' or 'while', and becomes an becomes an expression if it is. Sorry,
but that's ugly. *And* it would allow the exact error which the
assignment/expression thing was introduced to prevent.

Thanks, but no thanks.

Cheers,
Simon Brunning
TriSystems Ltd.
sbrunning at trisystems.co.uk





-----------------------------------------------------------------------
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in
reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
accept liability for statements made which are clearly the senders own.




More information about the Python-list mailing list