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
{{ message }}
Repository navigation
re.finditer() leaks reference cycles through its input #158095
This also affects Pattern.scanner() and bytearray subclass inputs. For bytes-like inputs, PyObject_GetBuffer() acquires a strong reference stored in state.buffer.obj. scanner_traverse() omits the owned references in both state.string and state.buffer.obj.
AI assistance: Codex helped investigate, test, and draft this report.
Activity
pythongh-158095: Normalize NEWS line endings
pythongh-158095: Clear input references in re scanners
gh-158095: Fix reference cycles in re scanners (#158100)
[3.15] gh-158095: Fix reference cycles in re scanners (GH-158100) (#1…
[3.14] gh-158095: Fix reference cycles in re scanners (GH-158100) (#1…