[New-bugs-announce] [issue7075] Bug while put a set on a dict

Chu-Cheng report at bugs.python.org
Wed Oct 7 05:46:11 CEST 2009


New submission from Chu-Cheng <chucheng at gmail.com>:

>>> 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}}

----------
components: None
messages: 93674
nosy: chucheng
severity: normal
status: open
title: Bug while put a set on a dict
versions: Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7075>
_______________________________________


More information about the New-bugs-announce mailing list