[Python-bugs-list] [ python-Feature Requests-563141 ] fileinput/gzip modules should play well
SourceForge.net
noreply@sourceforge.net
Mon, 12 May 2003 19:25:02 -0700
Feature Requests item #563141, was opened at 2002-05-31 17:27
Message generated for change (Comment added) made by bcannon
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=563141&group_id=5470
Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Greg White (groggygreggy)
Assigned to: Nobody/Anonymous (nobody)
Summary: fileinput/gzip modules should play well
Initial Comment:
It seems to be nearly impossible to use the fileinput
module to read gzip files, even though gzip support is
available in the gzip module.
As a first step, it would be nice if the fileinput.FileInput
class provided an overridable method that let outsiders
glue the gzip module in place.
It would also be nice if there was a way to make fileinput
just automatically support gzip files (if, for instance, it
saw a .gz extension).
----------------------------------------------------------------------
>Comment By: Brett Cannon (bcannon)
Date: 2003-05-12 19:25
Message:
Logged In: YES
user_id=357491
The hook is reasonable, the automatic opening of gzip is not. No need to
have magic done based purely on extension.
Any chance you could write a patch to expose the hook?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=563141&group_id=5470