[Baypiggies] Whither `python` OR `python2` and `python3`?

Shannon -jj Behrens jjinux at gmail.com
Wed Oct 5 16:04:30 EDT 2022


It doesn't make sense for /usr/bin/python to ever move from Python 2 to
Python 3 because that would be too incompatible of a change. Nor do we
always want to keep dragging Python 2 around. macOS removed Python
entirely. Hence, I think not having a /usr/bin/python that points to Python
2 (or Python 3) makes sense to me.

If they made it really easy to have multiple Python versions installed
without adding other package repos, that'd be great. I haven't tried it
lately (so what I'm saying could be wrong), but the last time I did, it
wasn't easy. I usually end up having to use pyenv or installing some other
package repo.

On Wed, Oct 5, 2022 at 12:52 PM wesley chun <wescpy at gmail.com> wrote:

> Hey folks, hope you're doing well, and nice to see some of you at PyBay a
> few weeks ago.
>
> I recently discovered that Ubuntu removed `/usr/bin/python`
> <https://wiki.ubuntu.com/FocalFossa/ReleaseNotes#Python3_by_default>,
> which took me a bit by surprise. I build both Python 2 and 3 containers for
> different apps, etc., and `python main.py` as an entrypoint had been pretty
> reliable because whatever version I installed in any container as `python`
> also pointed to the right place.
>
> Now all that has broken, and I have to be explicit because as we all know
> from Zen #2, "Explicit is better than implicit." But is it really though in
> this case? Was this a necessary breaking change? I'm pretty sure I disagree
> with it for now... change my mind? Curious what others think. Here's a related
> thread <https://askubuntu.com/questions/1296790>.
>
> Cheers,
> --Wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "A computer never does what you want... only what you tell it."
>     wesley chun :: @wescpy <http://twitter.com/wescpy> :: Software
> Architect & Engineer
>     Developer Advocate at Google
> <https://cloud.google.com/developers/advocates/wesley-chun/> by day; at
> night: Core Python <http://amzn.com/dp/0132269937>
>
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> https://mail.python.org/mailman/listinfo/baypiggies
>


-- 
In this life we cannot do great things. We can only do small things with
great love. -- Mother Teresa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/baypiggies/attachments/20221005/6fa942f5/attachment.html>


More information about the Baypiggies mailing list