[Python-Dev] Question on bz2 codec. Is this a bug? (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Wed Sep 29 23:59:00 CEST 2010


Le mercredi 29 septembre 2010 à 17:41 -0400, Chris Bergstresser a écrit :

On Wed, Sep 29, 2010 at 5:23 PM, Antoine Pitrou <solipsis at pitrou.net> wrote: > Anyway, the obvious way to write line-by-line to a bz2 file is to use > the BZ2File class!

The BZ2File class does not allow you to open a file for appending. Using the incremental encoder does work,

In what sense? Do you mean it adds a new bz2 stream at the end of the existing file?



More information about the Python-Dev mailing list