Charles-François Natali <neolo...@free.fr> added the comment: > But is there still a reason to use id(path) then?
IIRC, the reason is to avoid having a stale pyc file indefinitely in case of crash: if we always used, let's say, path + '.tmp', if the process crashes before the rename, then all subsequent attempts to write the bytecode will fail because of the stale temporary file. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14077> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com