[Python-Dev] Methods identity...?
Aahz
aahz at pythoncraft.com
Fri Sep 24 16:11:05 CEST 2004
On Fri, Sep 24, 2004, Dmitry Vasiliev wrote:
>
> Is this intended? Seems like a bug...
>
> (Python 2.1.3, 2.2.2, 2.3.4, 2.4a3, both old- and new- style classes.)
>
> >>> class Test(object):
> ... def test(self): pass
> ...
> >>> Test.test is Test.test
> False
> >>> t = Test()
> >>> t.test is t.test
> False
Not a bug. For more discussion, please post to comp.lang.python
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"A foolish consistency is the hobgoblin of little minds, adored by little
statesmen and philosophers and divines." --Ralph Waldo Emerson
More information about the Python-Dev
mailing list