[New-bugs-announce] [issue7910] immutability w/r to tuple.__add__

Matthew Russell report at bugs.python.org
Thu Feb 11 16:26:28 CET 2010


New submission from Matthew Russell <matt.horizon5 at gmail.com>:

Tuples, as we know are designed to immutable.

Hence I'm questioning if the following behavior is considered a defect:

>>> t = (1, 2)
>>> t += (1, 2, 3)
>>> t
(1, 2, 3)

?

----------
components: Interpreter Core
messages: 99219
nosy: mattrussell
severity: normal
status: open
title: immutability w/r to tuple.__add__
type: behavior
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7910>
_______________________________________


More information about the New-bugs-announce mailing list