Richard Oudkerk <[email protected]> added the comment: > 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 ---------- _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue14308> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
