Re: __init__ in subclass of tuple

2007-03-10 Thread Alan Isaac
"Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > The signature is like you said, but it's not a tuple method, it's an > object method instead: > py> tuple.__init__ > > The only important thing is that it says: of 'object' objects, not: of > 'tuple' objects. Compare with: > py> tuple.__len__ >

Re: __init__ in subclass of tuple

2007-03-09 Thread Gabriel Genellina
En Sat, 10 Mar 2007 02:36:41 -0300, Alan Isaac <[EMAIL PROTECTED]> escribió: > I am probably confused about immutable types. > But for now my questions boil down to these two: > > - what does ``tuple.__init__`` do? Nothing. tuple.__init__ does not even exist, as tuples are immutable, they are

__init__ in subclass of tuple

2007-03-09 Thread Alan Isaac
I am probably confused about immutable types. But for now my questions boil down to these two: - what does ``tuple.__init__`` do? - what is the signature of ``tuple.__init__``? These questions are stimulated by http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303439 Looking at that, what f