[Python-Dev] RFC: rewrite fileinput module to use itertools.

"Martin v. Löwis" martin at v.loewis.de
Tue May 17 00:03:24 CEST 2005


David M. Wilson wrote:
> Before charging on ahead with this small task, I was wondering if anyone 
> would have any objections to such an upgrade. It seems to me that 
> itertools.chain() could come in handy there, at least.
> 
> My only objection to the current implementation is that it doesn't 
> reflect the current Python "best practice" for what it does, and it 
> could be really simply made into a live demo of the itertools module.

I personally would not care, but if you have fun doing that, go ahead.
The major requirement would be that the result is 100% (better 150%)
compatible with the old code, even in border cases. I don't know
whether this is possible at all, from experience, I would guess
that there is a significant chance of breaking something.

Regards,
Martin


More information about the Python-Dev mailing list