One last PEP308 suggestion
Marco Mariani
marco at sferacarta.com
Tue Feb 18 10:53:51 EST 2003
On Tue, Feb 18, 2003 at 09:49:09AM -0600, Evan Simpson wrote:
> Here's my last thought for a PEP308 syntax that meets my criteria:
>
> (? <cond>: <true>, <false> ?)
>
> The '(?' and '?)' are single tokens. If you're not allergic to the idea
> of an n-way conditional, it allows for:
>
> (? <cond1>: <expr1>, <cond2>: <expr2>, <default> ?)
>
> Its grammar is obviously feasible, it can't be confused with "if", it
Yeah!!!! it won't be confused with Python!!!!
More information about the Python-list
mailing list