ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-list
python-list
Re: Good code patterns in Python
by Bernhard Herzog other posts by this author
Jul 2 2003 11:06AM messages near this date
Re: Good code patterns in Python | Re: Good code patterns in Python
Erik Max Francis <max@[...].com>  writes:

>   The
>  complete solution to this would probably be a conditional expression,
>  e.g.:
>  
>  	variable = (if condition: someValue else: otherValue)
>  
>  eliminating the duplication which can lead to errors.  (Python, of
>  course, doesn't have such a construct, and the silence after the
>  conditional expression PEP vote and the long silence thereafter suggests
>  that it never will.)

Guido broke his silence at EuroPython: The ternary operator will not be
added to Python.

   Bernhard

-- 
Intevation GmbH                                 http://intevation.de/
Sketch                                 http://sketch.sourceforge.net/
MapIt!                                           http://www.mapit.de/
-- 
http://mail.python.org/mailman/listinfo/python-list
Thread:
Will Stuyvesant
Ben Finney
Erik Max Francis
Bernhard Herzog
holger krekel
Kirk Job-Sluder
Erik Max Francis
Dennis Lee Bieber
Jiri Barton
Lulu of the Lotus-Eaters
Terry Reedy
Steven Taschuk
Michele Simionato

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved