Skip to content

Fix: Stabilize WeakKeyDictionary#295

Open
ax3l wants to merge 1 commit intopybind:mainfrom
ax3l:fix-weakkeydict
Open

Fix: Stabilize WeakKeyDictionary#295
ax3l wants to merge 1 commit intopybind:mainfrom
ax3l:fix-weakkeydict

Conversation

@ax3l
Copy link
Copy Markdown
Contributor

@ax3l ax3l commented Apr 2, 2026

Generalize the regex matching for __repr__ in the Python stdlib that go like <abc at 0x..> with memory addresses. The latter are not stable and lead to infinite loops in stub gen automation (e.g., CI).

Seen with WeakKeyDictionary.

@ax3l ax3l added the bug Something isn't working label Apr 2, 2026
ax3l added a commit to BLAST-ImpactX/impactx that referenced this pull request Apr 3, 2026
Generalize the regex matching for `__repr__` in
the Python stdlib that go like `<abc at 0x..>` with memory
addresses. The latter are not stable and lead to infinite
loops in stub gen automations (e.g., CI).
@ax3l ax3l force-pushed the fix-weakkeydict branch from 141bbec to a9bcc2c Compare April 3, 2026 04:47
@ax3l ax3l requested review from sizmailov, skarndev and virtuald and removed request for virtuald April 3, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant