Piet van Oostrum a écrit :
Steven D'Aprano <st...@removethis.cybersource.com.au> (SD) wrote:
(snip)
SD> # A.__base__ = DebugA ## Uncomment this line for debugging.A.__base__ = DebugATypeError: readonly attribute Make that: A.__bases__ = DebugA,
or even better (readability-wise): A.__bases__ = (DebugA,)Just the same thing, but at least you wont neither miss the ',' no wonder wether it's a typo or the author really wanted a tuple.
-- http://mail.python.org/mailman/listinfo/python-list