Re: [Python-Dev] BZ2File.writelines should raise more meaningful exceptions

2006-08-06 Thread Lawrence Oluyede
> Always post patches -- that way they can't get lost. *THEN* post to > python-dev with your analysis and explanation (which you presumably also > included with the patch), starting with a link to the patch. Thanks for the hint. This is the link: http://sourceforge.net/tracker/index.php?func=deta

Re: [Python-Dev] BZ2File.writelines should raise more meaningful exceptions

2006-08-06 Thread Aahz
On Sun, Aug 06, 2006, Lawrence Oluyede wrote: > > The patch is attached. If you think it's ok to fix this I'll post it > to the bug tracker Always post patches -- that way they can't get lost. *THEN* post to python-dev with your analysis and explanation (which you presumably also included with th

[Python-Dev] BZ2File.writelines should raise more meaningful exceptions

2006-08-06 Thread Lawrence Oluyede
In the BZ2File object of bz2 module the writelines() method does not check its closed state before doing the actual work so its behavior it's different from write()'s behavior. See: from bz2 import BZ2File f = BZ2File("foo", "w") f.close() f.closed 1 f.write("foobar") Traceback (most recent c