I had a colleague who was hostile to any language other than common lisp. Except python, which I assume is just because this page exists. What if norvig woke up that day and decided to write about Ruby instead?
Erenay09•54m ago
Seeing this reminded me of version 3.14, where π is an infinity expressed through its fractional parts.
ruuda•39m ago
> Python now uses UTF-8 as the default encoding, independent of the system’s environment.
Nice, not specifying the encoding is one of the most common issues I need to point out in code reviews.
joshribakoff•39m ago
Have you considered reducing review noise by using static analysis?
KK7NIL•25m ago
Yep, ruff has a warning for this exact issue.
formerly_proven•7m ago
encode()/decode() have used UTF-8 as the default since Python 3.2 (soon, 15 years ago). This is about the default encoding for e.g. the "encoding" parameter of open().
franga2000•5m ago
You mean the coding= comment? Where are you shipping your code that that was actually a problem? I've never been on a project where we did that, let alone needed it.
PaulHoule•3d ago
https://peps.python.org/pep-0686/