Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #85982

Re: On the sensibility of portable scripts

From "Carlos E.R." <robin_listas@es.invalid>
Newsgroups comp.os.linux.misc
Subject Re: On the sensibility of portable scripts
Date 2026-04-27 23:24 +0200
Message-ID <ep05cmxok.ln2@Telcontar.valinor> (permalink)
References (8 earlier) <10se5hv$39rl2$3@dont-email.me> <10smv4t$257nq$1@dont-email.me> <10sn5q8$26tnd$3@dont-email.me> <u5r3cmxtpb.ln2@Telcontar.valinor> <10so3mq$197ru$1@paganini.bofh.team>

Show all headers | View raw


On 2026-04-27 18:43, Ian wrote:
> Carlos E.R. wrote:
>> On 2026-04-27 10:12, Lawrence D’Oliveiro wrote:
>>> On Mon, 27 Apr 2026 06:19:09 -0000 (UTC), Lew Pitcher wrote:
>>
>>
>>>> If, for instance, you write a Perl or Python script for
>>>> distribution, it must not, to be useful to the intended audience,
>>>> assume much more than the common components of the selected
>>>> language; a Python 3 script won't be much use on a system that only
>>>> has Python 2 installed, unless it restricts itself to the subset of
>>>> Python 3 syntax and features that are common with Python 2.
>>>
>>> I would not bother maintaining compatibility with any version of
>>> either Perl or Python that no longer gets official support from
>>> upstream.
>>>
>>> For example, the last 2.x version of Python lost support over 6 years
>>> ago. For Python 3, the oldest currently-maintained version is 3.10.
>>> And going by past schedules, that will likely fall out of support
>>> sometime around October this year.
>>
>> My system still has python 2 installed.
>>
>> Scripts that I have seen do not specify versions, but they can.
>>
>> #!/usr/bin/env python3
>>
> But they should. The well known planewave program abinit has a python
> script to run the test programs. Unfortunately the hashbang just
> specifies python. Actually the script needs python3. On a system (e.g.
> OpenSuse) where "python" by default is a symlink to python2, chaos
> ensues, with many obscure error messages till you realize what's
> happening. I have been trying to get the abinitsters to change their
> hashbang, to no avail.

I looked at spamassassin.

I have this:

Telcontar:~ # python
python                                            python2-config                                    python3.10                                        python3.6m
python-argcomplete-check-easy-install-script      python2.7                                         python3.11                                        python3.6m-config
python-argcomplete-check-easy-install-script-3.6  python2.7-config                                  python3.12                                        pythontex
python-config                                     python3                                           python3.6
python2                                           python3-config                                    python3.6-config
Telcontar:~ # which python2
/usr/bin/python2
Telcontar:~ # l /usr/bin/python2
lrwxrwxrwx 1 root root 9 Mar 31 20:52 /usr/bin/python2 -> python2.7*
Telcontar:~ #


The python 2 is real :-D



Telcontar:~ # which python
/usr/bin/python
Telcontar:~ # l /usr/bin/python
lrwxrwxrwx 1 root root 9 Mar 31 20:52 /usr/bin/python -> python2.7*
Telcontar:~ #



-- 
Cheers, Carlos.
ES🇪🇸, EU🇪🇺;

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

CUPS print to FAX for Brother MFC printers Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-20 03:04 +0000
  Re: CUPS print to FAX for Brother MFC printers 🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> - 2026-04-20 13:09 +0200
    Re: CUPS print to FAX for Brother MFC printers Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-20 13:07 +0000
      Re: CUPS print to FAX for Brother MFC printers Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-20 15:07 +0000
  CUPS print to FAX for Brother MFC printers, source code and manual (pt 1) Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-22 14:25 +0000
    Re: CUPS print to FAX for Brother MFC printers, source code and manual (pt 1) Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-22 14:27 +0000
      Re: CUPS print to FAX for Brother MFC printers, source code and manual (pt 1) Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-23 08:22 +0000
    Re: CUPS print to FAX for Brother MFC printers, source code and manual (pt 1) "J.O. Aho" <user@example.net> - 2026-04-23 10:09 +0200
  Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-22 21:24 +0200
    Re: CUPS print to FAX for Brother MFC printers Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-22 19:41 +0000
      Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-22 21:48 +0200
        Re: CUPS print to FAX for Brother MFC printers Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-23 01:14 +0000
        Re: CUPS print to FAX for Brother MFC printers Allodoxaphobia <trepidation@example.net> - 2026-04-23 18:35 +0000
          Re: CUPS print to FAX for Brother MFC printers Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-23 20:05 +0000
            Re: CUPS print to FAX for Brother MFC printers Stéphane CARPENTIER <sc@fiat-linux.fr> - 2026-04-25 09:39 +0000
          Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-23 22:30 +0200
            Re: CUPS print to FAX for Brother MFC printers Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-23 20:53 +0000
              Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-23 23:05 +0200
                Re: CUPS print to FAX for Brother MFC printers Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-23 22:13 +0000
                On the sensibility of portable scripts Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2026-04-27 06:19 +0000
                Re: On the sensibility of portable scripts Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-27 08:12 +0000
                Re: On the sensibility of portable scripts "Carlos E.R." <robin_listas@es.invalid> - 2026-04-27 12:42 +0200
                Re: On the sensibility of portable scripts Ian <gay@sfuu.ca> - 2026-04-27 09:43 -0700
                Re: On the sensibility of portable scripts rbowman <bowman@montana.com> - 2026-04-27 18:11 +0000
                Re: On the sensibility of portable scripts "Carlos E.R." <robin_listas@es.invalid> - 2026-04-27 23:24 +0200
                Re: On the sensibility of portable scripts Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-27 22:37 +0000
                Re: On the sensibility of portable scripts c186282 <c186282@nnada.net> - 2026-04-27 22:26 -0400
                Re: On the sensibility of portable scripts Marc Haber <mh+usenetspam2616@zugschl.us> - 2026-04-28 07:52 +0200
                Re: On the sensibility of portable scripts rbowman <bowman@montana.com> - 2026-04-27 18:08 +0000
                Re: On the sensibility of portable scripts "Carlos E.R." <robin_listas@es.invalid> - 2026-04-27 23:36 +0200
                Re: On the sensibility of portable scripts rbowman <bowman@montana.com> - 2026-04-27 18:06 +0000
                Re: On the sensibility of portable scripts "Carlos E.R." <robin_listas@es.invalid> - 2026-04-27 13:07 +0200
                Re: On the sensibility of portable scripts Richard Kettlewell <invalid@invalid.invalid> - 2026-04-27 21:00 +0100
              Re: CUPS print to FAX for Brother MFC printers Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-24 04:39 +0000
            Re: CUPS print to FAX for Brother MFC printers Stéphane CARPENTIER <sc@fiat-linux.fr> - 2026-04-25 09:41 +0000
              Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-25 13:57 +0200
          Re: CUPS print to FAX for Brother MFC printers Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-24 04:38 +0000
            Re: CUPS print to FAX for Brother MFC printers Richard Kettlewell <invalid@invalid.invalid> - 2026-04-24 08:45 +0100
              Re: CUPS print to FAX for Brother MFC printers Stéphane CARPENTIER <sc@fiat-linux.fr> - 2026-04-25 09:51 +0000
            Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-24 10:57 +0200
              Re: CUPS print to FAX for Brother MFC printers The Natural Philosopher <tnp@invalid.invalid> - 2026-04-24 10:31 +0100
                Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-24 11:43 +0200
                Re: CUPS print to FAX for Brother MFC printers The Natural Philosopher <tnp@invalid.invalid> - 2026-04-24 11:11 +0100
                Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-24 12:50 +0200
                Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-24 11:45 +0200
                Re: CUPS print to FAX for Brother MFC printers The Natural Philosopher <tnp@invalid.invalid> - 2026-04-24 11:11 +0100
                Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-24 12:51 +0200
                Re: CUPS print to FAX for Brother MFC printers The Natural Philosopher <tnp@invalid.invalid> - 2026-04-24 13:42 +0100
                Re: CUPS print to FAX for Brother MFC printers Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2026-04-24 18:53 -0700
          Re: CUPS print to FAX for Brother MFC printers jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-04-25 12:01 -0400
            Re: CUPS print to FAX for Brother MFC printers "Carlos E.R." <robin_listas@es.invalid> - 2026-04-25 22:05 +0200
            Re: CUPS print to FAX for Brother MFC printers Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-04-26 01:18 +0000
              Re: CUPS print to FAX for Brother MFC printers Marc Haber <mh+usenetspam2616@zugschl.us> - 2026-04-26 09:46 +0200
              Re: CUPS print to FAX for Brother MFC printers jayjwa <jayjwa@atr2.ath.cx.invalid> - 2026-04-26 11:31 -0400
                Re: CUPS print to FAX for Brother MFC printers John Bokma <contact@johnbokma.com> - 2026-04-26 19:31 +0200
                Re: CUPS print to FAX for Brother MFC printers The Natural Philosopher <tnp@invalid.invalid> - 2026-04-26 20:18 +0100
                Re: CUPS print to FAX for Brother MFC printers Lars Poulsen <lars@beagle-ears.com> - 2026-04-27 15:56 -0700

csiph-web