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
b1c68274
Commit
b1c68274
authored
Jun 28, 2013
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Plain Diff
Merge with 3.3
parents
3fe70b4a
70d2c711
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
Lib/fileinput.py
Lib/fileinput.py
+5
-7
Misc/ACKS
Misc/ACKS
+1
-0
No files found.
Lib/fileinput.py
View file @
b1c68274
...
@@ -90,13 +90,11 @@ DEFAULT_BUFSIZE = 8*1024
...
@@ -90,13 +90,11 @@ DEFAULT_BUFSIZE = 8*1024
def
input
(
files
=
None
,
inplace
=
False
,
backup
=
""
,
bufsize
=
0
,
def
input
(
files
=
None
,
inplace
=
False
,
backup
=
""
,
bufsize
=
0
,
mode
=
"r"
,
openhook
=
None
):
mode
=
"r"
,
openhook
=
None
):
"""input(files=None, inplace=False, backup="", bufsize=0,
\
"""Return an instance of the FileInput class, which can be iterated.
mode="r", openhook=None)
Create an instance of the FileInput class. The instance will be used
The parameters are passed to the constructor of the FileInput class.
as global state for the functions of this module, and is also returned
The returned instance, in addition to being an iterator,
to use during iteration. The parameters to this function will be passed
keeps global state for the functions of this module,.
along to the constructor of the FileInput class.
"""
"""
global
_state
global
_state
if
_state
and
_state
.
_file
:
if
_state
and
_state
.
_file
:
...
@@ -183,7 +181,7 @@ def isstdin():
...
@@ -183,7 +181,7 @@ def isstdin():
return
_state
.
isstdin
()
return
_state
.
isstdin
()
class
FileInput
:
class
FileInput
:
"""
class FileInput([files[, inplace[, backup[, mode[, openhook
]]]]])
"""
FileInput([files[, inplace[, backup[, bufsize, [, mode[, openhook]
]]]]])
Class FileInput is the implementation of the module; its methods
Class FileInput is the implementation of the module; its methods
filename(), lineno(), fileline(), isfirstline(), isstdin(), fileno(),
filename(), lineno(), fileline(), isfirstline(), isstdin(), fileno(),
...
...
Misc/ACKS
View file @
b1c68274
...
@@ -1154,6 +1154,7 @@ John W. Shipman
...
@@ -1154,6 +1154,7 @@ John W. Shipman
Joel Shprentz
Joel Shprentz
Itamar Shtull-Trauring
Itamar Shtull-Trauring
Yue Shuaijie
Yue Shuaijie
Terrel Shumway
Eric Siegerman
Eric Siegerman
Paul Sijben
Paul Sijben
SilentGhost
SilentGhost
...
...
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