Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #66679

Re: a question about list as an element in a tuple

From Marko Rauhamaa <marko@pacujo.net>
Newsgroups comp.lang.python
Subject Re: a question about list as an element in a tuple
Date 2014-02-19 10:54 +0200
Organization A noiseless patient Spider
Message-ID <877g8r8ots.fsf@elektro.pacujo.net> (permalink)
References <CAFysF+SirN1VKMhCcuWjLXkK--+V2Bxs4AbntJgTjcMDMhrWuA@mail.gmail.com> <mailman.7137.1392794077.18130.python-list@python.org> <87bny38oz9.fsf@elektro.pacujo.net>

Show all headers | View raw


Marko Rauhamaa <marko@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

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: a question about list as an element in a tuple John O'Hagan <research@johnohagan.com> - 2014-02-19 18:14 +1100
  Re: a question about list as an element in a tuple Marko Rauhamaa <marko@pacujo.net> - 2014-02-19 10:51 +0200
    Re: a question about list as an element in a tuple Marko Rauhamaa <marko@pacujo.net> - 2014-02-19 10:54 +0200

csiph-web