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 mark.dickinson
Recipients Jah-On, mark.dickinson, ned.deily, ronaldoussoren
Date 2020-12-30.23:01:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1609369305.59.0.911358228436.issue42792@roundup.psfhosted.org>
In-reply-to
Content
Your test file has the line:

    f = open("lol.txt", "r", "utf-8")

But the third positional argument to the 'open' built-in function is "buffering", which expects an integer. Pass the "utf-8" argument by name instead:

    f = open("lol.txt", "r", encoding="utf-8")

As a side note, you probably also want to join your thread before exiting the script.

Closing here, since it looks as though there's no Python bug.
History
Date User Action Args
2020-12-30 23:01:45mark.dickinsonsetrecipients: + mark.dickinson, ronaldoussoren, ned.deily, Jah-On
2020-12-30 23:01:45mark.dickinsonsetmessageid: <1609369305.59.0.911358228436.issue42792@roundup.psfhosted.org>
2020-12-30 23:01:45mark.dickinsonlinkissue42792 messages
2020-12-30 23:01:45mark.dickinsoncreate