Unexpected result for list operator "+="

Alex Martelli aleaxit at yahoo.com
Thu Jan 4 12:42:50 EST 2001


"Thomas Wouters" <thomas at xs4all.net> writes:
    [snip]
> > http://www.python.org/doc/current/ref/sequence-types.html
> >
> > """
> > Finally, sequence types should implement addition (meaning
concatenation)
> > [snip]
> > by defining the methods __add__(), __radd__(), __iadd__(),
> > """
> > (it continues by saying the methods are 'described below',
> > but, they aren't).
    [snip]
> *That* is fixed in the newer docs. If you find a good place to add a
list's
> *=/+=, let me know. (Is the non-augmented * or + documented anywhere ?)

Not that I can see -- the "described below" I mentioned also refers
to the non-augmented versions.  Maybe, if 3.3.6 is now complete, it
might suffice to change 'described below' to 'described in <link to
3.3.6>', as 3.3.4 already mentions "addition (meaning concatenation)
and multiplication (meaning repetition)".

Does the C API manual also now mention the augmented operations...?


Alex






More information about the Python-list mailing list