A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-October/017979.html below:

[Python-Dev] Conditional expressions and sequences

[Python-Dev] Conditional expressions and sequences [Python-Dev] Conditional expressions and sequencesPaul Prescod paul@ActiveState.com
Tue, 16 Oct 2001 12:12:40 -0700
Skip Montanaro wrote:
> 
>...
> 
> Unfortunately, that requires both t and f to be evaluated.  

Perhaps not. What if the __where__ function was passed two callable
objects representing closures?

if x then y else z -> x.__where__(lambda: y, lambda: z)

I'm not saying I'm necessarily in favor of __where__. It is a kind of
innovative and I haven't thought through all of the issues.

 Paul Prescod



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