Re: How to manage python shebang on mixed systems?

2022-11-06 Thread Mike Dewhirst
On 7/11/2022 6:51 am, jak wrote: Il 06/11/2022 11:03, Chris Green ha scritto: I have a number of python scripts that I run on a mix of systems.  I have updated them all to run on python 3 but many will also run quite happily with python 2.  They all have a #!/usr/bin/python3 shebang. This works

Re: How to manage python shebang on mixed systems?

2022-11-06 Thread Weatherby,Gerard
A possible solution is here. https://superuser.com/questions/815323/can-i-have-a-conditional-shebang From: Python-list on behalf of jak Sent: Sunday, November 6, 2022 2:51:10 PM To: python-list@python.org Subject: Re: How to manage python shebang on mixed sy

Re: How to manage python shebang on mixed systems?

2022-11-06 Thread Cameron Simpson
On 06Nov2022 20:51, jak wrote: Il 06/11/2022 11:03, Chris Green ha scritto: I have a number of python scripts that I run on a mix of systems. I have updated them all to run on python 3 but many will also run quite happily with python 2. They all have a #!/usr/bin/python3 shebang. I usually

Re: How to manage python shebang on mixed systems?

2022-11-06 Thread Chris Green
rbowman wrote: > On Sun, 6 Nov 2022 10:03:50 +, Chris Green wrote: > > > > Is there a neat way of handling this? I could write a sort of wrapper > > script to run via the shebang but that seems overkill to me. > > Can you symlink? Not really, since the system where there's no python3 is o

Re: How to manage python shebang on mixed systems?

2022-11-06 Thread jak
Il 06/11/2022 11:03, Chris Green ha scritto: I have a number of python scripts that I run on a mix of systems. I have updated them all to run on python 3 but many will also run quite happily with python 2. They all have a #!/usr/bin/python3 shebang. This works almost everywhere but there is on

Re: comprehension parsing

2022-11-06 Thread philippe descharmes
Hello, I‌ts probably a priority of avalauation in the chain of operators ans association of themselves. I'm not sure. Philippe.   De : "BlindAnagram" A : python-list@python.org Envoyé: dimanche 6 Novembre 2022 00:57 Objet : Re: comprehension parsing   On 05/11/2022 22:11, MRAB wrote: > On 2022-11