[New-bugs-announce] [issue36987] Dictionary: why is the value not used up?

Aprila Hijriyan report at bugs.python.org
Tue May 21 04:26:26 EDT 2019


New submission from Aprila Hijriyan <hijriyan23 at gmail.com>:

Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC 7.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information.

>>> d = {"a": 1, "b": 2}
>>> d ["c"] = d
>>> d ["c"] {'a': 1, 'c': {...}, 'b': 2}
>>> d ["c"] ["c"] {'a': 1, 'c': {...}, 'b': 2}

why does the key value 'c' have a 'c' key in it?

----------
messages: 342984
nosy: Aprila Hijriyan
priority: normal
severity: normal
status: open
title: Dictionary: why is the value not used up?
versions: Python 2.7, Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36987>
_______________________________________


More information about the New-bugs-announce mailing list