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
003047a5
Commit
003047a5
authored
Oct 30, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mention the new file() builtin in the section on file objects.
parent
9e6a399b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
Doc/lib/libstdtypes.tex
Doc/lib/libstdtypes.tex
+6
-3
No files found.
Doc/lib/libstdtypes.tex
View file @
003047a5
...
...
@@ -1187,9 +1187,12 @@ It is written as \code{Ellipsis}.
\label
{
bltin-file-objects
}}
File objects are implemented using C's
\code
{
stdio
}
package and can be
created with the built-in function
\function
{
open()
}
\bifuncindex
{
open
}
described in section
\ref
{
built-in-funcs
}
, ``Built-in Functions.'' They are also returned
created with the built-in constructor
\function
{
file()
}
\bifuncindex
{
file
}
described in section
\ref
{
built-in-funcs
}
, ``Built-in Functions.''
\footnote
{
\function
{
file()
}
is new in Python 2.2. The older built-in
\function
{
open()
}
is an
alias for
\function
{
file()
}
.
}
They are also returned
by some other built-in functions and methods, such as
\function
{
os.popen()
}
and
\function
{
os.fdopen()
}
and the
\method
{
makefile()
}
method of socket objects.
...
...
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