Why no "=" in if? (was Re: Quick fix to add "+=")

Aahz Maruch aahz at netcom.com
Sat Apr 17 09:37:37 EDT 1999


I'm getting really sick of the way I have to use this stupid construct:

x = foo()
if x:
    ...

instead of 

if x = foo():
    ...

Why doesn't Guido get off his duff and fix this?????????!





In article <000701be888f$12fe2920$ee9e2299 at tim>,
Tim Peters <tim_one at email.msn.com> wrote:
>
>can't-wait-for-a-resumption-of-the-assignment-expression-thread<wink>-ly
>y'rs  - tim

Be careful what you ask for.  You may get it.
-- 
                      --- Aahz (@netcom.com)

Hugs and backrubs -- I break Rule 6       <*>      http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het

Sometimes, you're not just out of left field, you're coming in
all the way from outer space.




More information about the Python-list mailing list