classification
Title: difflib should accept arbitrary line iterators
Type: enhancement Stage: test needed
Components: Library (Lib) Versions: Python 3.3
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.araujo, giampaolo.rodola, gruszczy, techtonik, tim_one
Priority: normal Keywords:

Created on 2010-06-05 11:45 by techtonik, last changed 2011-04-03 19:46 by eric.araujo.

Messages (3)
msg107130 - (view) Author: anatoly techtonik (techtonik) Date: 2010-06-05 11:45
difflib operates on the lists, but it should be possible to use arbitrary generators. This will require internal limit on buffer size that has a side advantage of limiting difflib to available memory.
msg107246 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2010-06-06 22:28
If you allow me to rephrase your feature request to “difflib should allow arbitrary iterators that yield lines”, I’m +1.

Adjusting the version and adding tim_one to nosy as per py3k/Misc/maintainers.rst
msg132872 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-04-03 19:46
A quick look at the code doesn’t immediately tells me that difflib accepts sequences, not only lists.  I’m not sure iterators are accepted too.  What specific functions or methods have you found too strict?
History
Date User Action Args
2011-04-03 19:46:36eric.araujosetstage: needs patch -> test needed
messages: + msg132872
versions: + Python 3.3, - Python 3.2
2011-04-02 14:02:23gruszczysetnosy: + gruszczy
2010-07-05 21:18:24brian.curtinsetnosy: - brian.curtin
2010-06-07 20:02:34giampaolo.rodolasetnosy: + giampaolo.rodola
2010-06-07 06:34:53techtoniksettitle: difflib: support input generators -> difflib should accept arbitrary line iterators
2010-06-07 00:29:55brian.curtinsetnosy: + brian.curtin

stage: needs patch
2010-06-06 22:28:52eric.araujosetversions: - Python 3.1, Python 3.3
nosy: + eric.araujo, tim_one

messages: + msg107246

type: resource usage -> enhancement
2010-06-05 11:45:39techtonikcreate