Linux distributions and Python 2
Linux distributions and Python 2
Posted Jun 11, 2018 21:15 UTC (Mon) by Cyberax (✭ supporter ✭, #52523)In reply to: Linux distributions and Python 2 by remicardona
Parent article: Linux distributions and Python 2
It'll be supported by RHEL well into 2027. I don't have to care much about it.
Py3 is not really a different language, it's the same old Py2 with added inconvenience. I've done migrations Py2->3 and haven't found anything worth the effort so far. And I really detest the efforts to force the migration by actively making Py2 more and more inconvenient to use.
Personally, a major motivation for me to finally switch to PyX would be GIL removal.
Posted Jun 12, 2018 12:01 UTC (Tue)
by hkario (subscriber, #94864)
[Link] (1 responses)
that's, like, your opinion, man
seriously, I'd love to drop python 2 to be able to use generators to their full advantage (`yield from` would make my code so much cleaner)
so, sorry, but if you really think that Py3 is just py2 with few "inconvenient" items added then I don't think you can claim to know Py3
> Personally, a major motivation for me to finally switch to PyX would be GIL removal.
well, it won't happen in py2.7, that's certain
Posted Jun 14, 2018 20:12 UTC (Thu)
by togga (subscriber, #53103)
[Link]
Posted Jun 14, 2018 9:13 UTC (Thu)
by LtWorf (subscriber, #124958)
[Link] (3 responses)
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
Linux distributions and Python 2
Linux distributions and Python 2
Linux distributions and Python 2