Message332935
>>> with open('f.exe', 'w') as f:
... f.write('hi')
...
>>> with open('f') as f:
... print(f.read())
...
hi
`os.path.exists(...)` and others treat them as the same file as well. It seems the only reliable way to write both files is:
1. write to f.exe
2. write to f.bak
3. move f.bak to f (`os.rename`) |
|
Date |
User |
Action |
Args |
2019-01-03 16:53:58 | Anthony Sottile | set | recipients:
+ Anthony Sottile, paul.moore, tim.golden, zach.ware, steve.dower |
2019-01-03 16:53:56 | Anthony Sottile | set | messageid: <1546534436.45.0.760844199857.issue35650@roundup.psfhosted.org> |
2019-01-03 16:53:56 | Anthony Sottile | link | issue35650 messages |
2019-01-03 16:53:56 | Anthony Sottile | create | |
|