Hi,
I am trying to extend an overridden base class method (printer) by
printing some extra fields and then calling the base class method.
Extract from the python tutorial:
'An overriding method in a derived class may in fact want to extend
rather than simply replace the base class method of the s
Ok, i'll try that. But what about the recommendation in the tutorial,
is that not possible?
/H
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
How do python instances work?
Why does the code at the end of my posting produce this output:
list in a:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
list in b:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
instead of
list in a:
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
list in b:
[]
class MyClass:
Guess i shouldn't think of the __init__(self) function as a constructor
then.
Thanks.
/H
--
http://mail.python.org/mailman/listinfo/python-list