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.

Author chucheng
Recipients chucheng
Date 2009-10-07.03:46:09
SpamBayes Score 0.018195964
Marked as misclassified No
Message-id <1254887171.46.0.861154287703.issue7075@psf.upfronthosting.co.za>
In-reply-to
Content
>>> 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}}
History
Date User Action Args
2009-10-07 03:46:12chuchengsetrecipients: + chucheng
2009-10-07 03:46:11chuchengsetmessageid: <1254887171.46.0.861154287703.issue7075@psf.upfronthosting.co.za>
2009-10-07 03:46:10chuchenglinkissue7075 messages
2009-10-07 03:46:09chuchengcreate