Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GH-89812: Add pathlib._PurePathExt #104810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 20 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Éric <merwok@netwok.org>
  • Loading branch information
barneygale and merwok authored May 24, 2023
commit 115002aee671ee1221c5c771ec55191a71bd6818
4 changes: 2 additions & 2 deletions 4 Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def __repr__(self):
class _BasePurePath(object):
barneygale marked this conversation as resolved.
Show resolved Hide resolved
"""Base class for manipulating paths using only lexical operations.

This class does not provide __fspath__(), __bytes__() or as_uri().
This class does not provide the methods __fspath__, __bytes__ or as_uri.
"""

__slots__ = (
Expand Down Expand Up @@ -675,7 +675,7 @@ class PurePath(_BasePurePath):
PureWindowsPath object. You can also instantiate either of these classes
directly, regardless of your system.

On Posix, calling ``bytes()`` on a path gives the raw filesystem path as
On Posix, calling ``bytes(path)`` gives the raw filesystem path as
a bytes object, as encoded by ``os.fsencode()``. On Windows, the unicode
form is the canonical representation of fileysstem paths, and so calling
``bytes()`` on a path is not recommended.
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.