Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
python
/
cpython
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
36.9k
Star
77.3k
Code
Issues
5k+
Pull requests
2.7k
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
cpython
Lib
fileinput.py
on
3.6
User selector
All users
Datepicker
All time
Commit history
Commits on Apr 27, 2016
Issue #25788: fileinput.hook_encoded() now supports an "errors" argument
Show description for b275210
serhiy-storchaka
committed
b275210
View commit details
Copy full SHA for b275210
View code at this point
Browse repository at this point
Commits on Mar 8, 2016
Issue #15068: Avoid creating a reference loop in fileinput.
serhiy-storchaka
committed
aadaa36
View commit details
Copy full SHA for aadaa36
View code at this point
Browse repository at this point
Issue #15068: Avoid creating a reference loop in fileinput.
serhiy-storchaka
committed
0554d83
View commit details
Copy full SHA for 0554d83
View code at this point
Browse repository at this point
Issue #15068: Got rid of excessive buffering in fileinput.
Show description for 674e2d0
serhiy-storchaka
committed
674e2d0
View commit details
Copy full SHA for 674e2d0
View code at this point
Browse repository at this point
Issue #15068: Got rid of excessive buffering in the fileinput module.
Show description for cc2dbc5
serhiy-storchaka
committed
cc2dbc5
View commit details
Copy full SHA for cc2dbc5
View code at this point
Browse repository at this point
Commits on Jan 16, 2016
Issue #23883: Missing fileinput.__all__ APIs; patch by Mauro SM Rodrigues
vadmium
committed
7978e10
View commit details
Copy full SHA for 7978e10
View code at this point
Browse repository at this point
Commits on Jan 2, 2016
#22709: Use stdin as-is if it does not have a buffer attribute.
Show description for 830207e
bitdancer
committed
830207e
View commit details
Copy full SHA for 830207e
View code at this point
Browse repository at this point
Commits on Nov 1, 2015
Issue #25510: fileinput.FileInput.readline() now returns b'' instead of ''
Show description for 56275dc
serhiy-storchaka
committed
56275dc
View commit details
Copy full SHA for 56275dc
View code at this point
Browse repository at this point
Issue #25510: fileinput.FileInput.readline() now returns b'' instead of ''
Show description for 314464d
serhiy-storchaka
committed
314464d
View commit details
Copy full SHA for 314464d
View code at this point
Browse repository at this point
Commits on Apr 10, 2015
Issue #23865: close() methods in multiple modules now are idempotent and more
Show description for 7e7a3db
serhiy-storchaka
committed
7e7a3db
View commit details
Copy full SHA for 7e7a3db
View code at this point
Browse repository at this point
Issue #23865: close() methods in multiple modules now are idempotent and more
Show description for 2116b12
serhiy-storchaka
committed
2116b12
View commit details
Copy full SHA for 2116b12
View code at this point
Browse repository at this point
Commits on May 14, 2014
Issue #21075: fileinput.FileInput now reads bytes from standard stream if
Show description for 946cfc3
serhiy-storchaka
committed
946cfc3
View commit details
Copy full SHA for 946cfc3
View code at this point
Browse repository at this point
Commits on Nov 24, 2013
Issue #15204: Silence and check the 'U' mode deprecation warnings in tests.
Show description for 2480c2e
serhiy-storchaka
committed
2480c2e
View commit details
Copy full SHA for 2480c2e
View code at this point
Browse repository at this point
Commits on Nov 23, 2013
Issue #15204: Deprecated the 'U' mode in file-like objects.
serhiy-storchaka
committed
6787a38
View commit details
Copy full SHA for 6787a38
View code at this point
Browse repository at this point
Commits on Jun 28, 2013
Merge with 3.3
terryjreedy
committed
b1c6827
View commit details
Copy full SHA for b1c6827
View code at this point
Browse repository at this point
Issue #18315: Improve fileinput docs by adding 'bufsize' where missing and
Show description for 70d2c71
terryjreedy
committed
70d2c71
View commit details
Copy full SHA for 70d2c71
View code at this point
Browse repository at this point
Commits on Dec 25, 2012
Replace IOError with OSError (#16715)
asvetlov
committed
f7a17b4
View commit details
Copy full SHA for f7a17b4
View code at this point
Browse repository at this point
Commits on Dec 18, 2012
Issue #16706: get rid of os.error
asvetlov
committed
ad28c7f
View commit details
Copy full SHA for ad28c7f
View code at this point
Browse repository at this point
Commits on Nov 7, 2011
fileinput: replace this last occurence of codecs.open with builtins.open.
florentx
committed
a011e2b
View commit details
Copy full SHA for a011e2b
View code at this point
Browse repository at this point
Commits on Oct 28, 2011
Closes #13258: Use callable() built-in in the standard library.
florentx
committed
5d1155c
View commit details
Copy full SHA for 5d1155c
View code at this point
Browse repository at this point
Commits on Jul 31, 2010
#1286: allow using fileinput.FileInput as context manager.
birkenfeld
committed
6cb7b65
View commit details
Copy full SHA for 6cb7b65
View code at this point
Browse repository at this point
Commits on May 17, 2009
Use PEP 8 and true booleans.
birkenfeld
committed
ef0a865
View commit details
Copy full SHA for ef0a865
View code at this point
Browse repository at this point
Commits on Oct 29, 2007
Patch 1341 by Amaury Forgeot d'Arc.
Show description for 6203d8f
gvanrossum
committed
6203d8f
View commit details
Copy full SHA for 6203d8f
View code at this point
Browse repository at this point
Commits on Oct 16, 2007
Patch# 1258 by Christian Heimes: kill basestring.
Show description for 3172c5d
gvanrossum
committed
3172c5d
View commit details
Copy full SHA for 3172c5d
View code at this point
Browse repository at this point
Commits on Aug 30, 2007
Raise statement normalization in Lib/.
collinw
committed
ce36ad8
View commit details
Copy full SHA for ce36ad8
View code at this point
Browse repository at this point
Commits on Aug 16, 2007
Remove RISCOS support
Skip Montanaro
committed
7a98be2
View commit details
Copy full SHA for 7a98be2
View code at this point
Browse repository at this point
Commits on May 22, 2007
Merged revisions 55407-55513 via svnmerge from
Show description for d59da4b
gvanrossum
committed
d59da4b
View commit details
Copy full SHA for d59da4b
View code at this point
Browse repository at this point
Commits on Apr 21, 2007
PEP 3114: rename .next() to .__next__() and add next() builtin.
birkenfeld
committed
a18af4e
View commit details
Copy full SHA for a18af4e
View code at this point
Browse repository at this point
Commits on Feb 9, 2007
Fix most trivially-findable print statements.
Show description for be19ed7
gvanrossum
committed
be19ed7
View commit details
Copy full SHA for be19ed7
View code at this point
Browse repository at this point
Commits on Feb 19, 2006
Whitespace normalization.
tim-one
committed
200a580
View commit details
Copy full SHA for 200a580
View code at this point
Browse repository at this point
Patch #1215184: FileInput now can be given an opening hook which can
Show description for c98eeed
birkenfeld
committed
c98eeed
View commit details
Copy full SHA for c98eeed
View code at this point
Browse repository at this point
Patch #1212287: fileinput.input() now has a mode parameter for
Show description for c029f87
birkenfeld
committed
c029f87
View commit details
Copy full SHA for c029f87
View code at this point
Browse repository at this point
Patch #1215184: fileinput now has a fileno() function for getting the
Show description for 67e9fb9
birkenfeld
committed
67e9fb9
View commit details
Copy full SHA for 67e9fb9
View code at this point
Browse repository at this point
Patch #1337756: fileinput now accepts Unicode filenames.
birkenfeld
committed
e466217
View commit details
Copy full SHA for e466217
View code at this point
Browse repository at this point
Commits on Jan 8, 2003
Test that chmod() actually exists before calling it (it doesn't on MacOS9).
jackjansen
committed
52941a8
View commit details
Copy full SHA for 52941a8
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.