Message384090
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. |
|
Date |
User |
Action |
Args |
2020-12-30 23:01:45 | mark.dickinson | set | recipients:
+ mark.dickinson, ronaldoussoren, ned.deily, Jah-On |
2020-12-30 23:01:45 | mark.dickinson | set | messageid: <1609369305.59.0.911358228436.issue42792@roundup.psfhosted.org> |
2020-12-30 23:01:45 | mark.dickinson | link | issue42792 messages |
2020-12-30 23:01:45 | mark.dickinson | create | |
|