Terry J. Reedy added the comment:
'difflib' is a module that defines three classes and some functions. It does
not do anything in itself. SequenceMatcher, which is the basis for the other
functions, operates on sequences of hashable objects. The inputs must be
concrete random access indexed
Éric Araujo mer...@netwok.org added the comment:
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?
--
stage: needs patch - test
Changes by Filip Gruszczyński grusz...@gmail.com:
--
nosy: +gruszczy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8905
___
___
Python-bugs-list
Changes by Brian Curtin cur...@acm.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8905
___
___
Python-bugs-list
Changes by anatoly techtonik techto...@gmail.com:
--
title: difflib: support input generators - difflib should accept arbitrary
line iterators
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8905
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8905
___
___