Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 17 Online
OpenStudy (anonymous):

In this code http://dpaste.com/800839/ the first print statement prints 12345 but the second print statement prints unbound method MyClass.f why

OpenStudy (anonymous):

when you don't include the parens, you are asking it to return the method/function object. i think it is unbound because you are dealing with the class itself rather than an instance of the class - still reading, if i come up with something better will post.

OpenStudy (anonymous):

http://dpaste.com/801397/

OpenStudy (anonymous):

i have read and I have found out is something to do with __get__ method attribute . thanks bwcA for your help

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!