You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -317,7 +317,7 @@ for i in x:
317
317
print(i)
318
318
```
319
319
320
-
**Output:**
320
+
**Output (Python 2.7- Python 3.5):**
321
321
322
322
```
323
323
0
@@ -336,7 +336,8 @@ Yes, it runs for exactly **eight** times and stops.
336
336
337
337
* Iteration over a dictionary that you edit at the same time isnot supported.
338
338
* 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.
339
-
* Refer to this StackOverflow [thread](https://stackoverflow.com/questions/44763802/bug-in-python-dict) explaining a similar example.
339
+
* How deleted keys are handled and when the resize occurs might be different for different Python implementations.
340
+
* For more information, you may refer to this StackOverflow [thread](https://stackoverflow.com/questions/44763802/bug-in-python-dict) explaining a similar example in detail.
0 commit comments