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
41436bd1
Commit
41436bd1
authored
Jul 11, 2010
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#9184: fix default value for "buffering" param of open().
parent
2f3a0d90
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Doc/library/functions.rst
Doc/library/functions.rst
+1
-1
Modules/_io/_iomodule.c
Modules/_io/_iomodule.c
+1
-1
No files found.
Doc/library/functions.rst
View file @
41436bd1
...
...
@@ -676,7 +676,7 @@ are always available. They are listed here in alphabetical order.
:meth:`__index__` method that returns an integer.
.. function:: open(file, mode='r', buffering=
None
, encoding=None, errors=None, newline=None, closefd=True)
.. function:: open(file, mode='r', buffering=
-1
, encoding=None, errors=None, newline=None, closefd=True)
Open *file* and return a corresponding stream. If the file cannot be opened,
an :exc:`IOError` is raised.
...
...
Modules/_io/_iomodule.c
View file @
41436bd1
...
...
@@ -176,7 +176,7 @@ PyObject *PyExc_BlockingIOError = (PyObject *)&_PyExc_BlockingIOError;
* The main open() function
*/
PyDoc_STRVAR
(
open_doc
,
"open(file, mode='r', buffering=
None
, encoding=None,
\n
"
"open(file, mode='r', buffering=
-1
, encoding=None,
\n
"
" errors=None, newline=None, closefd=True) -> file object
\n
"
"
\n
"
"Open file and return a stream. Raise IOError upon failure.
\n
"
...
...
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