On Wed, 29 Sep 2010 23:05:38 +0200 "M.-A. Lemburg" <m...@egenix.com> wrote: > > The codec is scheduled to be added back to Python3. > > However, it's main use is in working on whole chunks of > data rather than the line-by-line approach you're after. > This is provided by the codec's incremental encoder/decoders, > but these are currently not used by codecs.open() and > I'm not sure whether the io lib uses them, which could > be used via the regular open().
The io lib will not work with a codec which doesn't return unicode strings. Anyway, the obvious way to write line-by-line to a bz2 file is to use the BZ2File class! Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com