dictionary-question

Emile van Sebille emile at fenx.com
Wed Nov 21 17:13:38 CET 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