MizardX added the comment:
Would if I could. But, No.
--
___
Python tracker
<http://bugs.python.org/issue5863>
___
___
Python-bugs-list mailing list
Unsubscribe:
MizardX added the comment:
I don't think (1) would break any code. finditer() would still generate
match-objects.
The only time you would be discard the match-object, is if you try to do a
destructuring bind in, e.g. a loop. This shouldn't be unexpected for the
New submission from MizardX :
re.findall and re.finditer has very different signature. One iterates over
match objects, the other returns a list of tuples.
I can think of two ways to make them more similar:
1) Make match objects iterable over their captures. With this, you could write
New submission from MizardX :
bz2.BZ2File should, like gzip.GzipFile, accept a fileobj argument.
If implemented, you could much more easily pipe BZ2-data from other
sources, such as stdin or a socket.
--
components: IO, Library (Lib)
messages: 86716
nosy: MizardX
severity: normal