5 ms·
> Python 2 is no longer installed by default. Python 3 has been updated to 3.6. And so it begins. I think/hope that the next RHEL will do the same thing, at wh
by oblio 9y ago
> Python 2 is no longer installed by default. Python 3 has been updated to 3.6.
And so it begins. I think/hope that the next RHEL will do the same thing, at which point the final nail will be in Py2's coffin.
- cisanti 9y agoFabric is still not supporting py3, it's important tool for a lot of admins.
- shakna 9y agoThere's a maintained Fabric fork [0] for Python 3, it is basically a drop-in and available via pip. [0] https://github.com/mathiasertl/fabric/ https://github.com/mathiasertl/fabric/
- collinmanderson 9y agoIn addition, fabric 2 is making progress.
- broodbucket 9y agoPlenty of things don't have python 3 support, but you can still use python2 without it being /usr/bin/python.
- detaro 9y agoI doubt very much Ubuntu has made python3 /usr/bin/python, since the official recommendation of the Python project is to not do that. Still true of course that it doesn't have to be installed by default even if some applications still need it.
- bobajeff 9y ago> I doubt very much Ubuntu has made python3 /usr/bin/python, since the official recommendation of the Python project is to not do that. Tell that to Arch. :(
- detaro 9y agoI know. If I remember right, Arch did it before the Python project published any official guidance/Arch triggered one being released.
- geofft 9y agoThere is no /usr/bin/python in the default Ubuntu install. There's a /usr/bin/python3, and if you `apt install python` you can get /usr/bin/python. But all of the system's code that uses Python has been converted to Python 3.
- wybiral 9y agoYeah, that's one of the only things I still use Python2 for. But it seems that they have a v2 in the works that's supposed to support Python3: https://github.com/fabric/fabric/tree/v2 https://github.com/fabric/fabric/tree/v2 And there's also a fork: https://pypi.python.org/pypi/Fabric3 https://pypi.python.org/pypi/Fabric3
- oblio 9y agoFabric is reacting to what the most conservative group or Linux users (sysadmins for RHEL) are asking for. That's why RHEL moving to Python 3 would be the last push needed.
- jandrese 9y agoSo we'll get it in 2024?
- oblio 9y agoThere is overlap between RHEL release support periods, from what I see it's about 3-4 years on average. So 2021? :)
- wyldfire 9y ago> Fabric is reacting to what the most conservative group or Linux users (sysadmins for RHEL) are asking for. I'm not familiar with the details, but does this mean that they're resisting patches to support 3.x? Given the existence of a fork it seems likely. It's not-at-all difficult to write a single Python package that works on both 2.7 and 3.x. Especially if you are willing to use `six`. I'll admit that it's a little harder to stay compatible with earlier-than-2.7, though.
- oblio 9y agoAh, now I remember. I think the actual argument against Py3-compatibility is exactly that: Fabric needs to support 2.6 because it is the default in RHEL/SLES versions which are still quite popular in enterprise environments and maintaining compatibility with both Py 2.6 and Py 3 is quite difficult, as you said.
- oconnor663 9y agoTo be clear, you can still install Python 2 the usual way. The only thing that's changing is that it's not installed by default (and by extension, that none of the base system depends on it).
- deleted 9y ago[deleted]
- gigatexal 9y agoI love, love, love python. I am probably irrational in my affection for the language. But it's python3 that I know and will work in python2 if needed but I think python2 needs to die a quick death.
- krisdol 9y agoNo kind of death at this point would be considered quick for python2
- Bromskloss 9y agoI've been looking forward to Python 4 for a long time now.
- gigatexal 9y agoHas there been anything posted about it? I'd be interested to read up on it.
- Bromskloss 9y agoI have heard no one even mention what it might be like. I'm just thinking that I liked the change from Python 2 to Python 3, so I'm hoping for more things to enjoy. :-)
- collinmanderson 9y agoIt’s just going to be one after 3.9. Nothing special. https://developers.redhat.com/blog/2014/09/17/why-python-4-0-wont-be-like-python-3-0/ https://developers.redhat.com/blog/2014/09/17/why-python-4-0...
- vacri 9y agoIf they're going to do that, they may as well just drop the dot.
- Bromskloss 9y agoWhy specifically 3.9?
- Veratyr 9y agoI can't wait for people to stop expecting that putting #!/usr/bin/env python at the top of their scripts will lead to python2 being used.
- collinmanderson 9y agoCurrently on most distorts you’ll get an error. You’ll need to use python3 explicitally for now.
- collinmanderson 9y agoConsidering RHEL 7 doesn’t even have Python 3 available in the core packages, I bet RHEL 8 will at least have Python 2 available as a package, just not installed by default. I would be surprised if they didn’t give any overlap between 2 and 3 in RHEL 8.