Most efficient solution?

Christopher A. Craig com-nospam at ccraig.org
Tue Jul 17 08:19:49 EDT 2001


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alex <new_name at mit.edu> writes:

> Yes, but what if item == None, or item == ''?

This doesn't matter.  The return value of C.get(item) is either None
or the _value_ of C[item] (which is always 1 in this instance).

- -- 
Christopher A. Craig <com-nospam at ccraig.org>
Remember, volume changes with the inverse square of the  
distance  -- GT Trombones
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt

iEYEARECAAYFAjtULWUACgkQjVztv3T8pzsBXACcDDz/xi9pel1Uh1Z6dHbOpkKA
CggAn0H8AcQOWZjdpogarFTToan83jch
=b8br
-----END PGP SIGNATURE-----



More information about the Python-list mailing list