We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ace5824 commit d1b23c8Copy full SHA for d1b23c8
Lib/pathlib.py
@@ -674,6 +674,11 @@ class PurePath(_BasePurePath):
674
instantiating a PurePath will return either a PurePosixPath or a
675
PureWindowsPath object. You can also instantiate either of these classes
676
directly, regardless of your system.
677
+
678
+ On Posix, calling ``bytes()`` on a path gives the raw filesystem path as
679
+ a bytes object, as encoded by ``os.fsencode()``. On Windows, the unicode
680
+ form is the canonical representation of fileysstem paths, and so calling
681
+ ``bytes()`` on a path is not recommended.
682
"""
683
__slots__ = ()
684
0 commit comments