[Python-Dev] Methods identity...?

Gerrit gerrit at nl.linux.org
Fri Sep 24 17:00:56 CEST 2004


Aahz wrote:
> 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

Or search the archives, I recall having brought this up on c.l.py once.

Gerrit.

-- 
Weather in Twenthe, Netherlands 24/09 16:25:
	13.0°C light rain showers; Cumulonimbus clouds observed mostly cloudy wind 5.8 m/s WNW (57 m above NAP)
-- 
In the councils of government, we must guard against the acquisition of
unwarranted influence, whether sought or unsought, by the
military-industrial complex. The potential for the disastrous rise of
misplaced power exists and will persist.
    -Dwight David Eisenhower, January 17, 1961


More information about the Python-Dev mailing list