Created
February 15, 2011 15:30
-
-
Save fcamel/827653 to your computer and use it in GitHub Desktop.
Output of https://gist.github.com/827637
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x.__dict__ | |
{} | |
x.property | |
------------------------------------------------------------ | |
x.property property value | |
type(x).__dict__['property'] <property object at 0x800fc9a48> | |
type(x).__dict__['property'].__get__(x, type(x)) property value | |
x.direct_attribute | |
------------------------------------------------------------ | |
x.direct_attribute direct_attribute | |
type(x.direct_attribute) <type 'str'> | |
type(x).__dict__['direct_attribute'] direct_attribute | |
x.method | |
------------------------------------------------------------ | |
id(x) 34376308944 | |
x.method() method value: 34376308944 | |
x.method <bound method X.method of <__main__.X object at 0x800fcd8d0>> | |
type(x).__dict__['method'] <function method at 0x800fc0e60> | |
type(x).__dict__['method'].__get__(x, type(x)) <bound method X.method of <__main__.X object at 0x800fcd8d0>> | |
x.classmethod | |
------------------------------------------------------------ | |
id(type(x)) 34375689248 | |
x.classmethod() classmethod value: 34375689248 | |
x.classmethod <bound method type.classmethod of <class '__main__.X'>> | |
type(x).__dict__['classmethod'] <classmethod object at 0x800fd3408> | |
type(x).__dict__['classmethod'].__get__(x, type(x)) <bound method type.classmethod of <class '__main__.X'>> | |
x.staticmethod | |
------------------------------------------------------------ | |
x.staticmethod() staticmethod value | |
x.staticmethod <function staticmethod at 0x800fc4578> | |
type(x).__dict__['staticmethod'] <staticmethod object at 0x800fd3440> | |
type(x).__dict__['staticmethod'].__get__(x, type(x)) <function staticmethod at 0x800fc4578> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment