pytoolz / toolz

A functional standard library for Python.
http://toolz.readthedocs.org/
Other
4.57k stars 258 forks source link

Fix Tlz error in Python 3.11 (alpha) #533

Closed eriknw closed 2 years ago

eriknw commented 2 years ago

Fixes #528.

xref: https://github.com/python/cpython/pull/27338 and https://github.com/python/cpython/issues/88880

I'm a little surprised that the code in CPython assumes that all module specs have _uninitialized_submodules. Maybe we should push for a change upstream, or maybe we should inherit from ModuleSpec to improve future-compatibility. Actually, yeah, I'll try to just use ModuleSpec directly instead of TlzSpec.

kloczek commented 2 years ago

Is it possible to make a new release with those fixes?

eriknw commented 2 years ago

Is it possible to make a new release with those fixes?

Will do!

eriknw commented 1 year ago

Released. Sorry for the delay--I wanted to figure out building wheels for cytoolz, which is now automated!