- Notifications
You must be signed in to change notification settings - Fork 58
Closed
Description
Hi,
I've stumbled upon a bug where I can't access all the entries in the immutables.Map via iteration.
The following bash script should reproduce it.
I tested it on:
Python 3.9.5 (default, Nov 23 2021, 15:27:38)
[GCC 9.3.0]
Python 3.9.9 (main, Nov 21 2021, 03:23:42)
[Clang 13.0.0 (clang-1300.0.29.3)]
PYTHONHASHSEED=0 python <<EOF import itertools import immutables import random seed=b'b\xe6\xe2\x82\xe5\xc1e|' r = random.Random(seed) a = immutables.Map( zip( (r.randrange(0, 10000000000) for i in range(820000)), itertools.repeat(None, 820000), ) ) len1 = len(a) len2 = len(tuple(a)) if len1 != len2: print(f"BADDDD seed:{seed} len(a)={len1} len(tuple(a))={len2}") EOF
I'll be happy to get help debugging this.
Thanks you
Eli
hauntsaninja, uriva and bswck
Metadata
Metadata
Assignees
Labels
No labels