A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2016-December/146976.html below:

[Python-Dev] Making sure dictionary adds/deletes during iteration always raise exception

[Python-Dev] Making sure dictionary adds/deletes during iteration always raise exception [Python-Dev] Making sure dictionary adds/deletes during iteration always raise exceptionChris Angelico rosuav at gmail.com
Tue Dec 13 12:55:20 EST 2016
On Wed, Dec 14, 2016 at 4:48 AM, Guido van Rossum <guido at python.org> wrote:
> IIUC the private version gets updated every time the dict gets modified --
> but what we need here should only trigger when a key is added or removed,
> not when a value is updated.

Is it possible to add a key, triggering a resize of the dict, then
remove one, and continue iterating through the old (deallocated)
memory? If so, that could potentially cause a crash.

ChrisA
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4