Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1902381
Summary: | python-mplcursors fails to build with Python 3.10: RuntimeError: dictionary changed size during iteration | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-mplcursors | Assignee: | Elliott Sales de Andrade <quantum.analyst> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | mhroncok, python-sig, quantum.analyst, thrnciar |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-02-06 05:47:22 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1890881 |
Description
Miro Hrončok
2020-11-28 10:05:08 UTC
What dictionary? There's a list() around the .items(), so it should be a copy, even if it was modified. The result of `self.callbacks.get(s, {})` is a dictionary of int -> weakref of function. When that weakref dies, it does go through a remove function that deletes things from the dictionaries, but that function also does a list() so should avoid changing during iteration. > What dictionary?
My thoughts exactly. No idea :(
Despite Python crashing now, the build appears to have been fixed for a few weeks. |