GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — os.PathLike is missing __slots__ · Issue #104898 · python/cpython

os.PathLike is missing __slots__ #104898

New issue
Copy link
New issue
Copy link
Closed
Closed
os.PathLike is missing __slots__#104898
Copy link
Labels
3.13only security fixesonly security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@barneygale
barneygale
opened on May 24, 2023
Issue body actions

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

  • GH-104898: Add __slots__ to os.PathLike #104899
  • GH-104898: Revert pathlib os.PathLike registration change. #105073
Reacted by Alex Waygood

Activity

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

    pythonGH-104898: Add __slots__ to os.PathLike

    39dcdc9

    GH-104898: Add __slots__ to os.PathLike (GH-104899)

    bd1b622
  3. barneygale commented on May 25, 2023

    @barneygale
    barneygale
    on May 25, 2023
    ContributorAuthor
    More actions

    Fixed in 3.13: #104899 / bd1b622

  4. barneygale
    closed this as completedon May 25, 2023
  5. barneygale
    added 3 commits that reference this issue on May 29, 2023

    pythonGH-104898: Revert pathlib os.PathLike registration change.

    da48ec8

    pythonGH-104898: Revert pathlib os.PathLike registration change.

    5af2a96

    GH-104898: Revert pathlib os.PathLike registration change. (GH-105073)

    d593074
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 fixesonly security fixestype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.