[Python-Dev] Let's get rid of unbound methods
Steven D'Aprano
steve at pearwood.info
Tue Jun 4 13:57:44 CEST 2013
On 04/06/13 12:43, 探晴 wrote:
<nothing>
Your email appears to be blank, except for a large chunk of HTML code. Did you have something specific to say other than the subject line?
As for unbound methods, Guido's time machine strikes again. They're already gone in Python 3.
py> class X:
... def spam(self):
... pass
...
py> X.spam
<function spam at 0xb7bd2dac>
py> X().spam
<bound method X.spam of <__main__.X object at 0xb7bd0e0c>>
--
Steven
More information about the Python-Dev
mailing list