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
1345103b
Commit
1345103b
authored
Jul 27, 2011
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#12642: fix args names in open() doc.
parent
66c15fe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Doc/library/functions.rst
Doc/library/functions.rst
+4
-4
No files found.
Doc/library/functions.rst
View file @
1345103b
...
...
@@ -796,7 +796,7 @@ available. They are listed here in alphabetical order.
Formerly only returned an unsigned literal.
.. function:: open(
filename[, mode[, bufsize
]])
.. function:: open(
name[, mode[, buffering
]])
Open a file, returning an object of the :class:`file` type described in
section :ref:`bltin-file-objects`. If the file cannot be opened,
...
...
@@ -804,7 +804,7 @@ available. They are listed here in alphabetical order.
:func:`open` instead of invoking the :class:`file` constructor directly.
The first two arguments are the same as for ``stdio``'s :cfunc:`fopen`:
*
file
name* is the file name to be opened, and *mode* is a string indicating how
*name* is the file name to be opened, and *mode* is a string indicating how
the file is to be opened.
The most commonly-used values of *mode* are ``'r'`` for reading, ``'w'`` for
...
...
@@ -825,9 +825,9 @@ available. They are listed here in alphabetical order.
single: buffer size, I/O
single: I/O control; buffering
The optional *buf
size
* argument specifies the file's desired buffer size: 0
The optional *buf
fering
* argument specifies the file's desired buffer size: 0
means unbuffered, 1 means line buffered, any other positive value means use a
buffer of (approximately) that size. A negative *buf
size
* means to use the
buffer of (approximately) that size. A negative *buf
fering
* means to use the
system default, which is usually line buffered for tty devices and fully
buffered for other files. If omitted, the system default is used. [#]_
...
...
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