Open emeryberger opened 2 months ago
from randomdict import RandomDict q = RandomDict({ i : i * i for i in range(10) }) print(list(q.items()))
[]
[(0, 0), (1, 1), (2, 4), (3, 9), (4, 16), (5, 25), (6, 36), (7, 49), (8, 64), (9, 81)]
Example of bug and fix
Before (ignores initialization):
After (properly initialized):