[New-bugs-announce] [issue35023] Missed a key when iterating over dictionary

Sapan report at bugs.python.org
Thu Oct 18 21:58:12 EDT 2018


New submission from Sapan <sapansingh43 at gmail.com>:

The issue occurs in the second level of nested dictionary.Iterating over nested dictionary and editing the key by popping the old key and entering the new key. The next iteration, at the second level of nested dictionary, then skips the second key in dictionary and continues from the third key. In debug mode found that on editing the first key, the new memory allocated points to an address that lies between second and third keys memory address. 

Let me know if some other information is required. I am attaching the python file where I successfully reproduced the issue.

----------
files: Dictissue.py
messages: 328016
nosy: Saps
priority: normal
severity: normal
status: open
title: Missed a key when iterating over dictionary
type: resource usage
versions: Python 3.7
Added file: https://bugs.python.org/file47882/Dictissue.py

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


More information about the New-bugs-announce mailing list