Antonio Cuni pushed to branch branch/py3.6 at PyPy / pypy


Commits:
3788bc2a by Antonio Cuni at 2020-06-26T15:27:33+02:00
fix a bug which was introduced by 338b6c45ed55: if by change the GC runs in the 
middle of the for loop inside __len__, the callbacks are executed, the 
dictionary changes size and we get a RuntimeError. Fix it by ensuring that we 
collect all the values BEFORE entering the for loop

--HG--
branch : py3.6

- - - - -
c283afcd by Antonio Cuni at 2020-06-26T15:29:32+02:00
apply to WeakKeyDictionary the same fix that we applied to WeakValueDictionary 
in fffa07e525de

--HG--
branch : py3.6

- - - - -
d889b0da by Antonio Cuni at 2020-06-26T15:30:43+02:00
merge heads

--HG--
branch : py3.6

- - - - -


2 changed files:

- + extra_tests/test_weakref.py
- lib-python/3/weakref.py


View it on GitLab: 
https://foss.heptapod.net/pypy/pypy/-/compare/40d4488f87bb4346eb342525018d31c2edef9713...d889b0da097bdcbc927dbeac888a11eeb5d72df9

-- 
View it on GitLab: 
https://foss.heptapod.net/pypy/pypy/-/compare/40d4488f87bb4346eb342525018d31c2edef9713...d889b0da097bdcbc927dbeac888a11eeb5d72df9
You're receiving this email because of your account on foss.heptapod.net.


_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to