Skip to content

Use Path objects for file paths in the PEG generator #159799

Closed

Description

@lysnikolaou

The PEG generator (Tools/peg_generator/pegen) currently passes file paths around as strings, mixing os.path calls with ad-hoc pathlib.Path(...) conversions. Let's change its entry points (build_parser, compile_c_extension, and all the build_* helpers) to take pathlib.Path.

Linked PRs

Activity

  1. added a commit that references this issue on Oct 19, 2026
  2. added a commit that references this issue on Oct 20, 2026
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions