[Patches] [ python-Patches-1215184 ] two fileinput enhancements (fileno, openhook)

SourceForge.net noreply at sourceforge.net
Thu Dec 8 14:22:05 CET 2005


Patches item #1215184, was opened at 2005-06-05 16:52
Message generated for change (Comment added) made by birkenfeld
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1215184&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Reinhold Birkenfeld (birkenfeld)
Assigned to: Nobody/Anonymous (nobody)
Summary: two fileinput enhancements (fileno, openhook)

Initial Comment:
These two patches enhance the fileinput module.

The fileno patch adds a "fileno()" method that returns
the current file number.

The openhook patch adds a possibility to specify an
opening hook, that is, instead of calling open(), the
hook is called. This is useful, for example, for
transparently decompressing gzip files, as wished in
RFE #563141.

Docs and tests will be added if this is welcomed.

----------------------------------------------------------------------

>Comment By: Reinhold Birkenfeld (birkenfeld)
Date: 2005-12-08 14:22

Message:
Logged In: YES 
user_id=1188172

Second patch attached, sorry ;)

----------------------------------------------------------------------

Comment By: John J Lee (jjlee)
Date: 2005-12-04 18:01

Message:
Logged In: YES 
user_id=261020

I don't see any attached openhook patch.

The fileno patch looks fine, but personally I would indeed
welcome docs and tests :-)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1215184&group_id=5470


More information about the Patches mailing list