[ create a new paste ] login | about

Link: http://codepad.org/WS6BWUa5    [ raw code | output | fork | 1 comment ]

Python, pasted on Dec 18:
1
2
3
4
5
6
class D(dict):
    pass

d=D()
print "type(d) is dict", (type(d) is dict)
print "isinstance(d, dict)", isinstance(d, dict)


Output:
1
2
type(d) is dict False
isinstance(d, dict) True


Create a new paste based on this one


Comments:
posted by yacitus on Dec 18
Nice. Thanks.

reply