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

Michiel Overtoom motoom at xs4all.nl
Thu Oct 6 03:08:08 EDT 2022


Hi Wesley,

> `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.

Consider python-is-python2 and python-is-python3:

$ apt-cache search python-is-python

python-is-python3 - symlinks /usr/bin/python to python3
python-is-python2 - symlinks /usr/bin/python to the DEPRECATED python2

Greetings,


> 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.
> 
> Cheers,
> --Wesley
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> "A computer never does what you want... only what you tell it."
>     wesley chun :: @wescpy :: Software Architect & Engineer
>     Developer Advocate at Google by day; at night: Core Python
> 
> _______________________________________________
> Baypiggies mailing list
> Baypiggies at python.org
> To change your subscription options or unsubscribe:
> https://mail.python.org/mailman/listinfo/baypiggies

-- 
"You can't actually make computers run faster, you can only make them do less." - RiderOfGiraffes



More information about the Baypiggies mailing list