[Buildbot-devel] Python2.3 compatibility

Stefan Seefeld seefeld at sympatico.ca
Wed Jun 10 15:37:15 UTC 2009


Bailey, Darragh wrote:
>
> I'm not so certain that it's a problem with python 2.4 v's 2.3. I have a nagging feeling that the compression and file writeout isn't complete when the verification step goes to try and open the file up again. Which results in it getting an empty file (len(content)==0), and the file contents appear perfectly fine when viewing the filesystem a few seconds later.
>   

I have run into bizarre errors, which were ultimately caused by me 
failing to close a file after having completed writing to it. As it 
happened, the content hadn't been written out (but happily sat in some 
buffer), when I attempted to read it again (still in the same process, 
but far away in the code), leading to obscure issues like the above.

And such issues certainly can change symptoms with Python versions.


FWIW,
       Stefan

-- 

      ...ich hab' noch einen Koffer in Berlin...





More information about the devel mailing list