Skip to content

[Stdlib] Add os.path.normpath#6637

Open
BlueDestination wants to merge 1 commit into
modular:mainfrom
BlueDestination:normpath
Open

[Stdlib] Add os.path.normpath#6637
BlueDestination wants to merge 1 commit into
modular:mainfrom
BlueDestination:normpath

Conversation

@BlueDestination
Copy link
Copy Markdown

Linked issue

Fixes #2962

Type of change

  • New feature or public API (requires prior proposal or issue approval)

Motivation

normpath is a standard POSIX path utility needed by other stdlib modules, such as tempfile (which has a TODO referencing it).

What changed

Added os.path.normpath and a test file.

Testing

Added test_normpath.mojo and all tests pass.

Checklist

  • The linked issue above has been reviewed by a maintainer and is
    agreed-upon, or this is a trivial fix that does not need prior
    approval
  • PR is small and focused — I've split larger changes into a sequence of
    smaller PRs where possible (see
    pull request sizes)
  • I ran ./bazelw run format to format my changes
  • I added or updated tests to cover my changes
  • If AI tools assisted with this contribution, I have included an
    Assisted-by: trailer in my commit message or this PR description (see
    [AI Tool Use Policy]

Assisted-by: AI

@BlueDestination BlueDestination requested a review from a team as a code owner June 2, 2026 14:56
@github-actions github-actions Bot added mojo-stdlib Tag for issues related to standard library waiting-on-review labels Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mojo-stdlib Tag for issues related to standard library waiting-on-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Implement os.path.normpath

1 participant