Why is "while" ticking me off???

Aahz Maruch aahz at panix.com
Mon Oct 9 12:56:51 EDT 2000


In article <87zokes2wc.fsf at cartman.azz.net>,
Adam Sampson  <ats1 at ukc.ac.uk> wrote:
>
>How about adding a "set to" operator?
>
>if a := dict[k1]:
>	a.something()

See dict.setdefault() in the Python 2.0 documentation.
-- 
                      --- Aahz (Copyright 2000 by aahz at pobox.com)

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

"[I have a] windmill fetish."  --Darkhawk



More information about the Python-list mailing list