Sounds fine, they’re both immutable which helps.
Sounds fine, they’re both immutable which helps.
UTF-8 is an encoding for unicode, that means it’s a way of representing a unicode string as actual bytes on a computer.
It is variable length and works by using the first bits of each byte to indicate how many bytes are are needed to represent the current character.
Python also uses an encoding, as you describe in the article, but it’s different to UTF-8. Unlike unicode, all characters in Python’s representation of the unicode string use the same number of bytes, which is the maximum that any individual unicode character in the string needs.
I’d probably mess up a more detailed explanation of UTF-8 or Python’s representation, so I’ll let you look into how they work in more detail if you’re interested.
The article says that CPython represents strings as UTF-8 encoded, which is not correct. The details about how it works are correct, just that’s not UTF-8.
That’s just a minor point though, nice article.
It’d be nice to have a rule specifically for the use of f-strings and template formatting in the same call, since that can easily be a security vulnerability.
I’m pretty sure most type checkers recognise both forms.
Assuming you’re talking about Lemmy… I think there are a lot of new people here, it feels sort of weird to welcome someone else when you’re just as new, but… Welcome anyway :)
Buying more won’t help, whenever you really need a pen and your usual one isn’t working, the only one you’ll be able to find is a cheap minure one that probably came from a kid’s birthday party 10 years ago. There’s no way to avoid this, you just have to accept it.
Reading this I do feel sort of bad as I’ve realised I’m pretty sure I didn’t buy most of my current pens so I must have (accidentally!) stolen them.
Yep, the ones that look full often don’t work at all while the ones that look like they have no ink at all can work for a surprising amount of time.
The full changelog for this release is here https://docs.python.org/release/3.11.7/whatsnew/changelog.html#python-3-11-7-final
Surprisingly not shown that obviously in the release announcements, but I guess that’s fair since most of the changes will have no effect on 99.9999% of people.