Skip to content

os.PathLike is missing __slots__ #104898

Description

@barneygale

Per @AlexWaygood:

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.

Linked PRs

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    3.13only security fixes
    on May 24, 2023
  2. added 2 commits that reference this issue on May 24, 2023
  3. barneygale commented on May 25, 2023

    @barneygale
    ContributorAuthor

    Fixed in 3.13: #104899 / bd1b622

  4. added 3 commits that reference this issue on May 29, 2023
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

    3.13only security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions