Le Mon, 01 Feb 2010 11:35:19 -0800, Brett Cannon a écrit : > > As others have said, an uncompressed zip file could work here. Or even a > file format where the first 4 bytes is the timestamp and then after that > are chunks of length-of-bytecode|magic|bytecode. That allows for opening > a file in append mode to add more bytecode instead of a zipfile's > requirement of rewriting the TOC on the end of the file every time you > mutate the file (if I remember the zip file format correctly).
Making the file append-only doesn't eliminate the problems with concurrent modification. You still have to specify and implement a robust cross-platform file locking system which will have to be shared by all implementations. This is really a great deal of complication to add to the interpreter(s). And, besides, it might not even work on NFS which was the motivation for your proposal :) _______________________________________________ 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