__init__ in subclass of tuple

Alan Isaac aisaac at american.edu
Sat Mar 10 16:44:43 EST 2007


"Gabriel Genellina" <gagsl-py2 at yahoo.com.ar> wrote:
> The signature is like you said, but it's not a tuple method, it's an
> object method instead:
> py> tuple.__init__
> <slot wrapper '__init__' of 'object' objects>

> The only important thing is that it says: of 'object' objects, not: of
> 'tuple' objects. Compare with:
> py> tuple.__len__
> <slot wrapper '__len__' of 'tuple' objects>




Thanks for that clue!
Alan






More information about the Python-list mailing list