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
All the ABCs in collections.abc deliberately define __slots__ for this very reason: so that other classes can subclass those ABCs and still be able to use the __slots__ machinery to block the creation of instance dictionaries.
Activity
pythonGH-104898: Add __slots__ to os.PathLike
GH-104898: Add __slots__ to os.PathLike (GH-104899)
barneygale commentedon May 25, 2023
Fixed in 3.13: #104899 / bd1b622
pythonGH-104898: Revert pathlib os.PathLike registration change.
pythonGH-104898: Revert pathlib os.PathLike registration change.
GH-104898: Revert pathlib os.PathLike registration change. (GH-105073)