This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: TypeError at List in Tuple concatenation
Type: behavior Stage: resolved
Components: Interpreter Core Versions: Python 3.4
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: r.david.murray, stf
Priority: normal Keywords:

Created on 2015-06-01 14:48 by stf, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg244588 - (view) Author: (stf) Date: 2015-06-01 15:01
>>> a = ([1,2],)
>>> a[0] += [3]

this raises an Type Error but adds the Elements to a.
So a is ([1, 2, 3],) afterwards.

This Problem doesn't occur, when you use a[0].append(3)
msg244590 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-06-01 15:12
Date User Action Args
2022-04-11 14:58:17adminsetgithub: 68534
2015-06-01 15:12:39r.david.murraysetstatus: open -> closed

nosy: + r.david.murray
messages: + msg244590

resolution: not a bug
stage: resolved
2015-06-01 15:05:55stfsettitle: Key Error at List in Tuple concatenation -> TypeError at List in Tuple concatenation
2015-06-01 15:02:25stfsetfiles: - bug.txt
2015-06-01 15:01:48stfsetmessages: + msg244588
2015-06-01 14:57:38stfsetfiles: + bug.txt
2015-06-01 14:48:05stfcreate