append on lists

Grant Edwards grante at visi.com
Tue Sep 16 15:57:53 CEST 2008


On 2008-09-16, Maric Michaud <maric at aristote.info> wrote:

> all expressions that return something, return a new object,

That's not _quite_ true:

>>> a=1
>>> b=a.__add__(0)
>>> a is b
True

;)

-- 
Grant Edwards                   grante             Yow! LOOK!!  Sullen
                                  at               American teens wearing
                               visi.com            MADRAS shorts and "Flock of
                                                   Seagulls" HAIRCUTS!



More information about the Python-list mailing list