[Python-Dev] PEP 3147: PYC Repository Directories

Barry Warsaw barry at python.org
Sun Feb 7 00:29:28 CET 2010


On Feb 01, 2010, at 11:28 PM, Martin v. Löwis wrote:

>So what would you do for concurrent writers, then? The current
>implementation relies on creat(O_EXCL) to be atomic, so a second
>writer would just fail. This is but the only IO operation that is
>guaranteed to be atomic (along with mkdir(2)), so reusing the current
>approach doesn't work.

I believe rename(2) is atomic also, at least on POSIX.  I'm not sure if that
helps us though.

-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-dev/attachments/20100206/3e4a2ef3/attachment.pgp>


More information about the Python-Dev mailing list