[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇
Change by 韩振宇 <0oshowe...@gmail.com>: -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list maili

[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇
韩振宇 <0oshowe...@gmail.com> added the comment: After f.close() it apperas. That's my fault. Thank you. -- ___ Python tracker ___ ___ P

[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇
Change by 韩振宇 <0oshowe...@gmail.com>: -- resolution: -> not a bug ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: Hi, I can't reproduce the issue but the fact that you did not close the file is suspicious. What does with open('test_output','w') as f: length = 195364 for i in range(length): f.write(str(i)+'\r\n') gives? -- nosy: +remi.lapeyre

[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇
Change by 韩振宇 <0oshowe...@gmail.com>: -- components: +macOS nosy: +ned.deily, ronaldoussoren type: -> behavior ___ Python tracker ___ __

[issue40476] Write file failed on OS X 10.15.4

2020-05-02 Thread 韩振宇
New submission from 韩振宇 <0oshowe...@gmail.com>: When I write a long file using write() function, the resulting file is truncated into some specific level when the file is newly establised. However, when the file is existing, the full length can be achieved. Here is the example code: f = open(