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: Bug while put a set on a dict
Type: Stage:
Components: None Versions: Python 3.1
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: chucheng
Priority: normal Keywords:

Created on 2009-10-07 03:46 by chucheng, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg93674 - (view) Author: Chu-Cheng (chucheng) Date: 2009-10-07 03:46
>>> x={1:{1}}
>>> x[1] = (x.get(1).add(2))
>>> x
{1: None}

But...
>>> x={1:{1}}
>>> o = x.get(1)
>>> o.add(2)
>>> o
{1, 2}
>>> x[1] = o
>>> x
{1: {1, 2}}
msg93675 - (view) Author: Chu-Cheng (chucheng) Date: 2009-10-07 04:05
my fault, I know what is the difference now :) sorry for bugging
History
Date User Action Args
2022-04-11 14:56:53adminsetgithub: 51324
2009-10-07 15:31:17benjamin.petersonsetresolution: not a bug
2009-10-07 04:05:59chuchengsetstatus: open -> closed

messages: + msg93675
2009-10-07 03:46:10chuchengcreate