This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author minaki_2525
Recipients minaki_2525
Date 2021-03-02.10:49:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614682163.99.0.9936995249.issue43365@roundup.psfhosted.org>
In-reply-to
Content
"""In Python 3.9, the following code can be run after commenting sleep, otherwise the file will always be empty"""
import time

file=open("data.txt","a+")
flag=0
while True:
    time.sleep(0.00001)
    file.write("test\n")
    print("add over")
History
Date User Action Args
2021-03-05 22:43:29terry.reedyunlinkissue43365 messages
2021-03-02 10:49:24minaki_2525setrecipients: + minaki_2525
2021-03-02 10:49:23minaki_2525setmessageid: <1614682163.99.0.9936995249.issue43365@roundup.psfhosted.org>
2021-03-02 10:49:23minaki_2525linkissue43365 messages
2021-03-02 10:49:23minaki_2525create