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
-- Dmitry Vasiliev (dima at hlabs.spb.ru) http://hlabs.spb.ru
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@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
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
participants (3)
-
Aahz -
Dmitry Vasiliev -
Gerrit