[Image-SIG] ImageFile._ParserFile

Alexey Borzenkov snaury at gmail.com
Wed Jul 29 11:13:02 CEST 2009

Hi all,

I've been looking at ImageFile._ParserFile (used by ImageFile.Parser),
and suddenly thought that all it does is reimplement reading part of
StringIO. Why is it needed? Of course using StringIO.StringIO wouldn't
make much sense in terms of performance/etc, but cStringIO.StringIO
(with the usual try/except) might make sense. What do you think?

More information about the Image-SIG mailing list