From 184df9f99dcaae4c55db1cf0cf048a7d2e74f51c Mon Sep 17 00:00:00 2001 From: Pradhvan Date: Sat, 15 Feb 2020 14:30:05 +0530 Subject: [PATCH] README.md: Update Python version in 'Modifying a dictionary while iterating over it' example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ab26e5a..27bbce7 100644 --- a/README.md +++ b/README.md @@ -1930,7 +1930,7 @@ Yes, it runs for exactly **eight** times and stops. * It runs eight times because that's the point at which the dictionary resizes to hold more keys (we have eight deletion entries, so a resize is needed). This is actually an implementation detail. * How deleted keys are handled and when the resize occurs might be different for different Python implementations. * So for Python versions other than Python 2.7 - Python 3.5, the count might be different from 8 (but whatever the count is, it's going to be the same every time you run it). You can find some discussion around this [here](https://github.com/satwikkansal/wtfpython/issues/53) or in [this](https://stackoverflow.com/questions/44763802/bug-in-python-dict) StackOverflow thread. -* Python 3.8 onwards, you'll see `RuntimeError: dictionary keys changed during iteration` exception if you try to do this. +* Python 3.7.6 onwards, you'll see `RuntimeError: dictionary keys changed during iteration` exception if you try to do this. ---