For review: PEP 308 - If-then-else expression
Gerrit Holl
gerrit at nl.linux.org
Sat Feb 8 09:19:00 EST 2003
James P. Rutledge schreef op zaterdag 8 februari om 05:23:23 +0000:
> It *might* be possible to obtain the effects of the proposed expression
> in a more general way by extending the semantics of the following
> existing construct:
>
> ("html", "text")[is_html(msg)]
I think you mean:
("html", "text")[not is_html(msg)] #, or
("html", "text")[is_html(msg) -1] # :), or
("text", "html")[is_html(msg)] #
yours,
Gerrit.
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
http://www.sp.nl/
More information about the Python-list
mailing list