New submission from Aprila Hijriyan <hijriya...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue36987>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to