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:51:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1614682265.1.0.879800153503.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+")
while True:
    time.sleep(0.00001)
    file.write("test\n")
    print("add over")
History
Date User Action Args
2021-03-02 10:51:05minaki_2525setrecipients: + minaki_2525
2021-03-02 10:51:05minaki_2525setmessageid: <1614682265.1.0.879800153503.issue43365@roundup.psfhosted.org>
2021-03-02 10:51:05minaki_2525linkissue43365 messages
2021-03-02 10:51:05minaki_2525create