Python 3.12.1, Windows 11: shebang line #!/usr/bin/env python3 doesn't work any more

Mike Dewhirst miked at dewhirst.com.au
Fri Dec 29 22:04:41 EST 2023


On 29/12/2023 12:09 pm, Félix An via Python-list wrote:
> On 2023-12-25 12:36, Mike Dewhirst wrote:
>>
>> 3. You cannot trust Microsoft. You can trust Python Software 
>> Foundation. Python from PSF works the same in all environments - or 
>> if not it is a bug. Python from Microsoft is tweaked to satisfy their 
>> aforementioned strategy of locking in users to Windows.
>>
>
> I strongly disagree with this.

Not sure which part of the above you strongly disagree with. I might 
seem a bit OTT with "You cannot trust Microsoft" but I did put it in a 
specific context.

PSF does try to make Python work identically in all operating systems it 
supports. The OP was using py.exe which I discovered (just now - and it 
is why I'm writing this) exists on my Windows 10 machine. I have never 
installed any Python other than personally downloaded from the 
python.org website - therefore py.exe must have come from PSF!

I had assumed the OP had installed Python from the Microsoft shop and 
that's where py.exe must have come from.

I learn something every day.

> I don't get all the irrational hate for Microsoft that exists within 
> the Linux community.

Perhaps you are too young to remember when Steve Ballmer was head of 
Microsoft?

He specifically and loudly hated Linux and developed the anti-linux 
culture/strategy within Microsoft. If memory serves correctly he called 
it a virus. That was in the context of trying to get rid of Linux in 
Europe (Germany I think) where it had gained a small municipal foothold. 
Microsoft eventually succeeded in reversing that public mistake.

> In recent years, Microsoft has made great contributions to the 
> everyday life of Linux users. VS Code is based on open source and 
> available on Linux, .NET is now on Linux, Windows has WSL2 and Visual 
> Studio Linux development tools to help you develop software for Linux, 
> SQL Server (despite still being commercial software except for the 
> Express and Developer versions) is on Linux, etc.

I only use Linux on servers without GUI. I have used Windows desktop 
since it was released because most of my clients used it. I had no 
choice. I have been watching what they do for decades.

I agree they appear to have become more civilised in recent years.

M

-- 
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Your
email software can handle signing.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://mail.python.org/pipermail/python-list/attachments/20231230/cde6c616/attachment.sig>


More information about the Python-list mailing list