dictionary-question

Emile van Sebille emile at fenx.com
Wed Nov 21 11:13:38 EST 2001


You might also try:

foo['spam'] = foo.setdefault('spam',0) + 1

-- 

Emile van Sebille
emile at fenx.com




More information about the Python-list mailing list