a question about list as an element in a tuple

Marko Rauhamaa marko at pacujo.net
Wed Feb 19 03:54:39 EST 2014


Marko Rauhamaa <marko at pacujo.net>:

> operator.add(x, y) [...] leaves x and y intact and must return a new
> object.

Well, if the addition doesn't modify x, the method can of course return
x.


Marko



More information about the Python-list mailing list