Linux distributions and Python 2
Linux distributions and Python 2
Posted Jun 14, 2018 9:13 UTC (Thu) by LtWorf (subscriber, #124958)In reply to: Linux distributions and Python 2 by Cyberax
Parent article: Linux distributions and Python 2
Something tells me that you never ventured outside of writing English, because in any other language, having strings in unicode rather than ASCII is a huge improvement.
Then, Python3 has type annotations, which lets you use mypy to do some static checks on the code.
I wrote typedload (https://github.com/ltworf/typedload) to load json-like data into typed data structures, so that once loaded, you know your data has the correct types and can be safely be passed around.
My grandmother did not know how to use a computer, that doesn't mean that computers are useless.
Posted Jun 14, 2018 17:21 UTC (Thu)
by Cyberax (✭ supporter ✭, #52523)
[Link]
Static annotations are nice, but are kinda beside the point.
Posted Jun 16, 2018 16:33 UTC (Sat)
by lsl (subscriber, #86508)
[Link] (1 responses)
Posted Sep 19, 2019 16:11 UTC (Thu)
by LtWorf (subscriber, #124958)
[Link]
With unicode objects, you know that they are not array of bytes and a conversion is needed, and you get an error if you didn't do the conversion that you were supposed to do.
Linux distributions and Python 2
Linux distributions and Python 2
Linux distributions and Python 2