A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2006-March/062103.html below:

[Python-Dev] conditional expressions - add parens?

[Python-Dev] conditional expressions - add parens? [Python-Dev] conditional expressions - add parens?Steve Holden steve at holdenweb.com
Mon Mar 6 23:25:05 CET 2006
Morel Xavier wrote:
> Steve Holden wrote:
> 
>> Contrast with the bleeding obvious:
>>
>>      level = 0
>>      if "absolute_import" in self.futures:
>>          level = -1
>>
>> regards
>>   Steve
> 
>  >
> The issue that spawned the necessity of a ternary operator in the first 
> place was that this syntax is not usable at all in quite a few 
> situations like, say, list comprehensions...
> 
Sure, and for those uses it's good enough. This isn't really a 
python-dev topic, though, so I'll avoid following up further on this list.

regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd                 www.holdenweb.com
Love me, love my blog         holdenweb.blogspot.com
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4