[issue42733] io's r+ mode truncate(0)

施文峰 report at bugs.python.org
Mon Dec 28 04:32:37 EST 2020


施文峰 <ke265379ke at gmail.com> added the comment:

hi Terry

you are right
i download python version 3.0.1 to check this case

'''
Python 3.0.1 (r301:69556, Dec 28 2020, 14:14:02) 
[GCC 7.5.0] on linux5
Type "help", "copyright", "credits" or "license" for more information.
>>> from test_case import test
[43552 refs]
>>> test()
beginning tell 0
tell after read 32
tell after delete content 0
tell after write 32
[52665 refs]
>>> 

'''

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42733>
_______________________________________


More information about the Python-bugs-list mailing list