News for hackers. Stuff that matters.
Re:Free-threaded CPython is ready to experiment with by vhcr on Friday July 12, 2024 @07:08PM (#40950290)
In theory it's nice that the compiler would catch those kinds of problems, but in practice it doesn't matters.
Re:Free-threaded CPython is ready to experiment with by GTP on Saturday July 13, 2024 @12:26PM (#40954965)
It can matter also in practice. Once I was trying some Python ML model to generate images. My script ran for 20 minutes to then terminate with an exception when it arrived at the point of saving the result to a file. The reason is that I wanted to concatenate a counter to the file name, but forgot to wrap the integer into a call to str(). 20 minutes wasted for an error that other languages would have spotted before running the script.
Re:Free-threaded CPython is ready to experiment with by cozzyd on Saturday July 13, 2024 @06:10PM (#40957278)
It's very hard to write long-running daemons in python partially for this reason, when you make a typo on a variable or method name in an uncommon code path.