homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author sbt
Recipients Dustin.Kirkland, cooyeah, neologix, pitrou, python-dev, sbt
Date 2012年04月19日.22:08:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334873284.67.0.912362582649.issue14308@psf.upfronthosting.co.za>
In-reply-to
Content
> I don't think _DummyThread can override __stop(), because of the name
> mangling of __private methods. However, the hasattr() approach would
> probably work.
Wouldn't a _DummyThread._Thread__stop() method override Thread.__stop()? Like
>>> class A(object):
... def foo(self):
... self.__bar()
... def __bar(self):
... print "original"
...
>>> class B(A):
... def _A__bar(self):
... print "overridden"
...
>>> B().foo()
overridden
History
Date User Action Args
2012年04月19日 22:08:04sbtsetrecipients: + sbt, pitrou, neologix, cooyeah, python-dev, Dustin.Kirkland
2012年04月19日 22:08:04sbtsetmessageid: <1334873284.67.0.912362582649.issue14308@psf.upfronthosting.co.za>
2012年04月19日 22:08:04sbtlinkissue14308 messages
2012年04月19日 22:08:03sbtcreate

AltStyle によって変換されたページ (->オリジナル) /