Message413468
In a first Python process, repeatedly create and delete a file:
from pathlib import Path
while True:
Path("foo").touch(); Path("foo").unlink()
In another process, repeatedly check for the path's existence:
from pathlib import Path
while True: print(Path("foo").exists())
On Linux, the second process prints a random series of True and False. On Windows, it quickly fails after a few dozen iterations (likely machine-dependent) with
PermissionError: [WinError 5] Access is denied: 'foo'
which is actually raised by the stat() call.
I would suggest that this is not really desirable behavior? |
|
Date |
User |
Action |
Args |
2022-02-18 08:50:37 | Antony.Lee | set | recipients:
+ Antony.Lee, paul.moore, tim.golden, zach.ware, steve.dower |
2022-02-18 08:50:37 | Antony.Lee | set | messageid: <1645174237.48.0.436213701589.issue46785@roundup.psfhosted.org> |
2022-02-18 08:50:37 | Antony.Lee | link | issue46785 messages |
2022-02-18 08:50:37 | Antony.Lee | create | |
|