4 ms·
I'm still not clear on what the real benifit of python3 over 2 was. I use python3 now by default, as it has fstrings, and probably some iteration things that I
by KaiserPro 2y ago
I'm still not clear on what the real benifit of python3 over 2 was.
I use python3 now by default, as it has fstrings, and probably some iteration things that I now rely on, and is faster for a lot of things.
But for the longest time the only difference that I bumped into was that print isnt a keyword anymore, but assert still is.
- robertlagrant 2y agoThe main breaking change was Unicode for strings, which is what caused all the pain as lots of code was written to assume ASCII strings. But it's good that it's Unicode.
- KaiserPro 2y agoAhhh yes, that brings back memories. This also meant that stuff coming from things like UARTs and sockets were binary, rather than strings in python3.
- Izkata 2y agoFor anyone who doesn't remember: A python3 design decision they went partially back on meant it was easier to go from 2.7 to 3.3 than it was to go from 2.7 to 3.0 (I think it was 3.3 when they compromised, maybe 3.4?)
- robertlagrant 2y ago3.3 - they reallowed unicode literals.