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.
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:28 | admin | set | github: 58664 |
| 2012年03月31日 15:33:50 | r.david.murray | set | status: open -> closed nosy: + r.david.murray messages: + msg157196 resolution: not a bug stage: resolved |
| 2012年03月31日 14:43:20 | amaury.forgeotdarc | set | nosy:
+ amaury.forgeotdarc messages: + msg157193 |
| 2012年03月31日 14:17:20 | manolo69 | set | messages: + msg157192 |
| 2012年03月31日 14:10:42 | manolo69 | set | messages:
+ msg157191 components: + None versions: + Python 3.2 |
| 2012年03月31日 14:09:19 | manolo69 | create | |