Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a731b992
Commit
a731b992
authored
Oct 07, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #3187 (file 11721): Document byte vs. string parameters
and results.
parent
a5c2a51c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
Doc/library/os.rst
Doc/library/os.rst
+10
-6
No files found.
Doc/library/os.rst
View file @
a731b992
...
...
@@ -693,13 +693,13 @@ Files and Directories
.. function:: getcwd()
Return a
byte
string representing the current working directory.
Return a string representing the current working directory.
Availability: Unix, Windows.
.. function:: getcwd
u
()
.. function:: getcwd
b
()
Return a
string
representing the current working directory.
Return a
bytestring
representing the current working directory.
Availability: Unix, Windows.
...
...
@@ -801,8 +801,10 @@ Files and Directories
``'..'`` even if they are present in the directory. Availability:
Unix, Windows.
On Windows NT/2k/XP and Unix, if *path* is a Unicode object, the result will be
a list of Unicode objects.
If *path* is a Unicode object, the result will be a list of Unicode objects.
If a filename can not be decoded to unicode, it is skipped. If *path* is a
bytes string, the result will be list of bytes objects included files
skipped by the unicode version.
.. function:: lstat(path)
...
...
@@ -916,7 +918,9 @@ Files and Directories
be converted to an absolute pathname using ``os.path.join(os.path.dirname(path),
result)``.
If the *path* is a Unicode object, the result will also be a Unicode object.
If the *path* is an Unicode object, the result will also be a Unicode object
and may raise an UnicodeDecodeError. If the *path* is a bytes object, the
result will be a bytes object.
Availability: Unix.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment