Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Michael Kesper Newsgroups: linux.debian.maint.python Subject: Re: /usr/bin/python3 deprecation and enforcing /usr/bin/python Date: Fri, 14 Nov 2025 18:50:01 +0100 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Fri Nov 14 17:45:16 2025 Old-Return-Path: X-Amavis-Spam-Status: No, score=-4.5 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 Original-Content-Transfer-Encoding: 8bit Original-Subject: Re: /usr/bin/python3 deprecation and enforcing /usr/bin/python Author: Michael Kesper MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: de-DE Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Mailing-List: archive/latest/23359 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/d7bf8b6b-e925-4de7-af0b-5c2760862e30@familie-kesper.de Approved: robomod@news.nic.it Lines: 18 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 14 Nov 2025 18:28:24 +0100 X-Original-Message-ID: X-Original-References: <87ldkbxnd7.fsf@angela.anarc.at> <57038eef-f807-4a18-baf5-a997f1defc68@familie-kesper.de> <385a4e40c7e94dec0fa881d0a0a5593e7fd852d1.camel@gmail.com> Xref: csiph.com linux.debian.maint.python:17154 Hi Alexandru, hi all, On 14.11.25 18:11, Alexandru Mihail wrote: > Exactly what I was saying before in this thread as well. The amount of scripts with theĀ #!/usr/bin/python3 shebang in the wild is staggering. I'm not saying > that it's good practice but it must be considered. > Maybe we could do a very gradual change, warning users in apt changes > for several versions of python before pulling the rug maybe in Debian I question the whole move as such. No gradual change can fix a broken move. Have a look at e.g. https://docs.python.org/3/tutorial/interpreter.html#source-code-encoding That's just one example of official docs using #!/usr/bin/env python3 So please consider not changing the status quo at all, making life miserable for everyone using Python on Debian. Best Michael