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.

classification
Title: type([].append([]))
Type: Stage: resolved
Components: None Versions: Python 3.2
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: amaury.forgeotdarc, manolo69, r.david.murray
Priority: normal Keywords:

Created on 2012-03-31 14:09 by manolo69, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg157190 - (view) Author: (manolo69) Date: 2012-03-31 14:09
nonetype
msg157191 - (view) Author: (manolo69) Date: 2012-03-31 14:10
nonetype
should be list???
msg157192 - (view) Author: (manolo69) Date: 2012-03-31 14:17
sorry
msg157193 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2012-03-31 14:43
Do you suggest that after "myList = []", "myList.append(1)" should return the list?
msg157196 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2012-03-31 15:33
It sounds like manolo69 is just confused about what the append operation returns (which is None).  Since this is a carefully considered part of the design of Python (operations that mutate objects rather than creating a new object return None), I'm closing this issue as invalid.
History
Date User Action Args
2022-04-11 14:57:28adminsetgithub: 58664
2012-03-31 15:33:50r.david.murraysetstatus: open -> closed

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

resolution: not a bug
stage: resolved
2012-03-31 14:43:20amaury.forgeotdarcsetnosy: + amaury.forgeotdarc
messages: + msg157193
2012-03-31 14:17:20manolo69setmessages: + msg157192
2012-03-31 14:10:42manolo69setmessages: + msg157191
components: + None
versions: + Python 3.2
2012-03-31 14:09:19manolo69create