4 ms·
In Python 3 they are two distinct types as well.
by orf 8y ago
In Python 3 they are two distinct types as well.
- lmm 8y agoThey're not really "types" when you only find out at runtime.
- orf 8y agoSure they are.
- joshuamorton 8y agoWhen handling tricky string issues, my first step is usually to explicitly type annotate the code (using mypy annotations). This makes string handling and tracking much simpler.