Message153908
| Author |
neologix |
| Recipients |
brett.cannon, neologix, pitrou |
| Date |
2012年02月21日.22:26:14 |
| SpamBayes Score |
3.452778e-07 |
| Marked as misclassified |
No |
| Message-id |
<CAH_1eM0PGT4LoXAvfL+dmFcRhR_3FzJ4YeJy2SEAKGF1H=AB6w@mail.gmail.com> |
| In-reply-to |
<1329862109.3401.4.camel@localhost.localdomain> |
| Content |
> 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. |
|