New submission from Chu-Cheng <chuch...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue7075> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com