Skip to content

python-dispatch v0.2.2 is incompatible with Python 3.14 #24

Description

@pwt

New issue starting with Python 3.14:

Reproducer (x.py):

from pydispatch import Dispatcher
print("Done!")

Output:

$ python x.py 
Traceback (most recent call last):
  File "/home/ubuntu/x.py", line 1, in <module>
    from pydispatch import Dispatcher
  File "/home/ubuntu/venv/lib/python3.14/site-packages/pydispatch/__init__.py", line 18, in <module>
    from pydispatch.dispatch import *
  File "/home/ubuntu/venv/lib/python3.14/site-packages/pydispatch/dispatch.py", line 10, in <module>
    from pydispatch.aioutils import AioWeakMethodContainer, AioEventWaiters
  File "/home/ubuntu/venv/lib/python3.14/site-packages/pydispatch/aioutils.py", line 4, in <module>
    from _weakrefset import _IterationGuard
ImportError: cannot import name '_IterationGuard' from '_weakrefset' (/home/ubuntu/.local/share/uv/python/cpython-3.14.0-linux-x86_64-gnu/lib/python3.14/_weakrefset.py)

This is the PR that removed _IterationGuard: python/cpython#125325

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions