Jeffrey Seifried a écrit :
(snip)
> if type(a)==type({}):
> print 'a is a dictionary'
This instanciates a dict, call type() on it, and discard the dict -
which is useless since the dict type is a builtin. Also, when you want
to test identity, use an identity test.
if type(a) is dict:
print "blah blah blah"
--
http://mail.python.org/mailman/listinfo/python-list
