multiprocessing BaseManager doesn't clean up net connections?

2008-12-31 Thread Chris Brooks
Hi, I'm trying to use remote managers in the multiprocessing module to listen for some events synchronously while my program goes off and does other things. I use the .start() method which forks a new process to handle communication. When I catch the sigint and call sys.exit() though, the netwo

Re: memory mapped tar file contents

2008-11-12 Thread Chris Brooks
Jean-Paul Calderone wrote: > > If you mmap a tar file, then you'll get a bunch of tar formatted stuff. > If > you mmap a gzipped tar file, then you'll get a bunch of gzipped stuff. > Are > you sure that's what you want? From your code snippet, it looks more like > you want the uncompressed f

memory mapped tar file contents

2008-11-12 Thread Chris Brooks
Hi, I would like to read directly from a tar file into memory so I can manipulate a file (quickly) and write its changes out to another file. I thought I could do something like: #!/usr/bin/env python import tarfile import mmap fil = tarfile.open( "out.tar.gz" , "r:gz" ) tarinf = fil.next() m