Feature suggestion -- return if true

Paul Rubin no.email at nospam.invalid
Tue Apr 12 02:58:52 EDT 2011


zildjohn01 <zildjohn01 at gmail.com> writes:
>     _temp = expr
>     if _temp: return _temp

I'm trying to figure out a context where you'd even want that, and I'm
thinking that maybe it's some version of a repeat-until loop?  Python
doesn't have repeat-until and it's been proposed a few times.



More information about the Python-list mailing list