r/Python • • Sep 15 '15

Ask microsoft to include Python in Windows by default

https://windows.uservoice.com/forums/265757-windows-feature-suggestions/suggestions/6693586-ship-python-3-and-python-2-with-windows-10
1.2k Upvotes

329 comments sorted by

View all comments

Show parent comments

2

u/the_hoser Sep 15 '15

They could not as Ruby is not installed by default on Linux. The whole thing here is about default installation.

Any Linux admin worth their salt can install Ruby in 10 seconds. If you're worried about clueless end-users, don't. There are none in the Linux world.

For which Python works well (you know this youtube website is coded in Python...). So Python is popular in the Web AND outside of the web.

Ruby is, in my experience, far more popular than Python for web development. Python does a good job, for sure, but the culture is with Ruby on this one.

Most importantly, MS has invested in Python, Linux distro has invested in Python. Banks have invested in Python. Google have invested in Python. Not Ruby. Python.

Twitter invested in Ruby, Github invested in Ruby, Hulu invested in Ruby...

We can do this all day.

What's not objective about :

people use it a lot;

it does the job;

it's installed on most competitors;

?

Moot points. The same could be said for Java or Flash. Bash is arguably even more popular.

You don't need to modify Python to make it work. You can just ship it the way it is. Plus MS already has a foot in the Python word. They are already doing it right.

And here's the crux of the proplem: They will modify Python. What's worse, they won't fix the core problems of developing and distributing applications written in Python on windows. Bundling Python would actually have the potential to make it worse. It's already bad on OS X. People shy away from Python 3 because their laptop doesn't have it by default.

And the proposed solution still doesn't solve the binary module problem. If you dare write something in a later version of Python that Microsoft deigns to provide, then you still have the same problems that we have right now. You still have issues with binary modules.

You're not making windows better with this. You're making Python worse.

1

u/[deleted] Sep 15 '15

This whole conversation is about having cross platform defaults. The fact a sys admin can install Ruby doesn't matter when I want to send a cleanup script to my mom.

1

u/the_hoser Sep 15 '15

It's still platform-specific, though. Even if it's in the same language. You're going to have three scripts in one file instead of three scripts in three files. I don't see any value in this.

1

u/[deleted] Sep 15 '15

I've written plenty of scripts that work cross platform. Anything that doesn't affect system files will be fine.

Simple example, you want to process 10,000 photos and convert the RAW images into web jpg images. This script would be 100% the same on both Windows and Linux. Launch the script, choose the input/output directories, and away you go.

1

u/the_hoser Sep 15 '15

Ah! But now we have a problem. What native windows tool will you be using to convert those images? How will this work without installing extra software before running the script?

1

u/[deleted] Sep 15 '15

Pillow does all the image conversions and it's 100% python. It ships with your script, it's just a package.

1

u/the_hoser Sep 15 '15

Pillow is most certainly not 100% Python.

https://github.com/python-pillow/Pillow

0

u/[deleted] Sep 15 '15

FFS you're being pedantic now. It's a python library that can be shipped with your code. Just zip up your directory and send it off. Execute it with a python script and be happy.

If Windows had a default python executable this would make it easy to distribute such scripts. Since it doesn't that process of installing Python makes it a non-starter for a lot of people.

-1

u/the_hoser Sep 15 '15

No, you're not thinking of the deeper implications of the problem. Even with a python interpreter installed in Windows, it's a gigantic pain in the but to distribute software for Python in Windows. How will you pack up that module? You're going to need a windows machine with the appropriate version of visual studio... I'm sure that Pillow has a pre-built module. Wait... it's a wheel file, though. Okay, tell grandma to run 'pip install pillow'. That worked, right?

It's a mess. Having a python interpreter installed by default won't fix any of it.

1

u/flutefreak7 Sep 17 '15

Wouldn't you just put pillow and your script in a folder with an init file, zip it, then email the zip file along with a py file that just calls python app.zip ... the system python would then execute the application. The system already has stdlib, and the zip has any 3rd party libs. I haven't done this, but all of this seems doable, and prevents actually bundling python.exe or stdlib modules.

→ More replies (0)

-1

u/desmoulinmichel Sep 15 '15

Any Linux admin worth their salt can install Ruby in 10 seconds. If you're worried about clueless end-users, don't. There are none in the Linux world.

That's beside the point. If you have to install your runtime on all your sever, it's work. If you have to install it on Windows AND Linux servers, it's even more work.

See my other comments about that. It's a LOT more work than just ssh and apt-get/yum install in big companies.

Ruby is, in my experience, far more popular than Python for web development. Python does a good job, for sure, but the culture is with Ruby on this one.

Yet Python hold the comparison, and is more used at scripting. Good thing we are talking about scripting. Cause here, we'll have the best option + a decent option for the web.

Twitter invested in Ruby, Github invested in Ruby, Hulu invested in Ruby...

We can do this all day.

Given that Linux distro editors, MS and Google are all OS builders and Twitter/Github/Hulu are websites, one are more important than the others.

Moot points. The same could be said for Java or Flash. Bash is arguably even more popular.

It's not a moot point : the all purpose is easy cross plateform scripting.

Nor Flash or Java is installed by default on most linux distro.

Again I'd be happy to see bash installed on Windows. I'd prefer Python, but I'd go with bash. Only MS will never invest in bash. And using bash to access COM API would suck.

And here's the crux of the proplem: They will modify Python.

You are assuming in advance they will screw this up. I know they have a shitty track record, but the Azur Python support seems to go well.

What your saying is : "it may go wrong, so let's not do it". Let's not do anything then. Let's shudown all computers cause our entire job is to build stuff that go wrong.

What's worse, they won't fix the core problems of developing and distributing applications written in Python on windows.

THAT IS NOT THE POINT.

For the 1000th time, the purpose is cross platform scripting and sharing small GUI tools.

There is noway you can destroy Python to the point it can't run tkinter.

And i'm no assuming they will destroy Python. This is pure assumption.

You're not making windows better with this. You're making Python worse.

Assumption, assumption, assumption.

You are saying my love for Python cloud my judgement. Fair enough. I'd argue that your (shared) digust for MS is clouding yours.

Your all post is about trying to find faults instead of trying to be right, so much that you mixes up all possible arguments : it may go wrong, you could use another language, it's not fixing {not the topic}, etc.

2

u/the_hoser Sep 15 '15

That's beside the point. If you have to install your runtime on all your sever, it's work. If you have to install it on Windows AND Linux servers, it's even more work.

Sure, but I never use the supplied Python interpreter on my servers. I always end up having to build my own because the linux distributions can never seem to get it right (See: Python 2.6 on RHEL). I'm a Linux admin, though. I have a lovely bash script for that.

See my other comments about that. It's a LOT more work than just ssh and apt-get/yum install in big companies.

Big companies have big resources. I'm not worried about them. They'll be fine. Even Microsoft knows this.

Yet Python hold the comparison, and is more used at scripting. Good thing we are talking about scripting. Cause here, we'll have the best option + a decent option for the web.

Great. Now all the web frameworks will target the version that runs on Windows.

Given that Linux distro editors, MS and Google are all OS builders and Twitter/Github/Hulu are websites, one are more important than the others.

Says you. I say that without web companies, we wouldn't even need operating systems as capable as we have. No vendor is more or less important than any other.

It's not a moot point : the all purpose is easy cross plateform scripting.

Sure, but you still haven't provided a good reason for why Python is the right choice for scripting.

Nor Flash or Java is installed by default on most linux distro.

They're arguably installed on more computers, though.

Again I'd be happy to see bash installed on Windows. I'd prefer Python, but I'd go with bash. Only MS will never invest in bash.

They've provided a KSH implementation in the past, though. Any implementation of standard SH features will do.

And using bash to access COM API would suck.

It already sucks to do it in Python, so I don't see how this would be any different.

You are assuming in advance they will screw this up. I know they have a shitty track record, but the Azur Python support seems to go well.

Their support of Java on Windows NT went well, too. Initially.

What your saying is : "it may go wrong, so let's not do it". Let's not do anything then. Let's shudown all computers cause our entire job is to build stuff that go wrong.

Now you're getting into hyperbole. I'm just saying that I don't want the standard version of Python to be the one that Microsoft ships.

THAT IS NOT THE POINT.

For the 1000th time, the purpose is cross platform scripting and sharing small GUI tools.

You want to use PYTHON to do GUI work? Now I'm convinced that you are crazy.

And i'm no assuming they will destroy Python. This is pure assumption.

No, it's a judgement based on their history. Based on their actions. They may not even do it intentionally, but they will do it. Worse, they'll do it in subtle ways that are hard to track down. You think they're just going to ship the version hosted on python.org? Really?

Assumption, assumption, assumption.

History tells me I'm right.

You are saying my love for Python cloud my judgement. Fair enough. I'd argue that your (shared) digust for MS is clouding yours.

I have no disgust for Microsoft. I use their products on a daily basis. I write software for Windows without any issue (unless I'm using Python). I understand how they tick. OS X has done horrible things for Python 3 by bundling Python 2 for so long. Microsoft will do the same, or worse.

Your all post is about trying to find faults instead of trying to be right, so much that you mixes up all possible arguments : it may go wrong, you could use another language, it's not fixing {not the topic}, etc.

I don't want Microsoft to ship a version of Python. I don't want another major vendor stagnating the advancement of Python. I'm not trying to find faults. I'm telling you you're wrong.