[ create a new paste ] login | about

Link: http://codepad.org/eOI0Hf88    [ raw code | output | fork ]

jleedev - Python, pasted on Feb 21:
1
2
3
4
5
6
7
8
9
10
class Spam(object):
    def __call__(self): pass
s = Spam()

print callable(s)

class A(object): pass
A.s = s
print s
print A.s


Output:
1
2
3
True
<__main__.Spam object at 0x40358acc>
<__main__.Spam object at 0x40358acc>


Create a new paste based on this one


Comments: