r/Python • • Jun 05 '19

Win10 is going to start including Python 3.7

https://blog.adafruit.com/2019/06/04/new-guide-python-is-in-the-latest-build-of-windows-10-adafruitlearningsystem-python-adafruit-win10-windows-adafruit/
1.5k Upvotes

174 comments sorted by

322

u/dinov Jun 06 '19

What's actually there is a small stub that launches into the app store to install Python. That installation in the app store is controlled by the core Python developers too, do it'll get updated to the latest version regularly. Steve Dower gave a talk about it at PyCon and I believe also mentioned it at the language summit there. So a lot of the concerns mentioned in the comments here should be mitigated.

91

u/pingveno pinch of this, pinch of that Jun 06 '19

Oh, good. I was worried the Python community would get stuck supporting some ancient version of Python until Microsoft got around to updating it a decade after its release.

107

u/Zomunieo Jun 06 '19

Glares at Apple.

41

u/sssmmt Jun 06 '19

Apple is deprecating Python and other scripting languages from MacOS

https://www.reddit.com/r/apple/comments/bwulrh/apple_will_soon_be_removing_python_perl_and_ruby/

32

u/ducsekbence Jun 06 '19

This is pretty great tbh. I never use the built in one, and it causes lots of issues.

88

u/CodeReclaimers Jun 06 '19

Will they be replaced by a non-standard $999 scripting stand?

26

u/[deleted] Jun 06 '19

That stand truly is the gift that keeps on giving.

17

u/CodeReclaimers Jun 06 '19

It's like they intentionally decided to create something that exemplifies the "no, really, people will buy *anything* we put an Apple price tag on" phenomenon.

11

u/gobbledygook12 Jun 06 '19

It would be fun to see how long it would take people to stop buying Apple if they start going backwards with technology. I'm thinking somewhere around the abacus 7s and the slide rule X the Apple fans would get suspicious.

8

u/maffaz Jun 06 '19

Download modules from iTunes starting from. 99cents...

5

u/ubernostrum yes, you can have a pony Jun 07 '19 edited Jun 07 '19

So, I see people going on about this all over reddit, and I know there's no point to actually explaining it, but what the hell. I'll explain it.

The monitor is a big deal; if it has the capabilities they're claiming for it, it competes with reference monitors that cost tens of thousands of dollars, and Apple's going to sell theirs starting at $5k. That's going to change the market for creative professionals who need a monitor with the kind of precision-calibrated color Apple is claiming they'll provide.

So, what about the stand? Well, a lot of the people who'd want the monitor already have a stand or mount and won't want another one. They're going to give Apple an extra $199 and get a thing that attaches to the back of the monitor to provide a standard four-screw VESA attachment to their existing stand or mount.

But some people will want a stand (mostly idiots who will spend too much money on a monitor whose capabilities they don't actually need, in order to show off that they can, because again the people who actually need the monitor already have a way to mount it), and they'll want it to be high quality. So Apple has to do small production run (expensive) of a high-quality item (expensive). Which means the stand is expensive. It is probably still overpriced, but I suspect the goal there is to encourage people to just go with the VESA mount.

1

u/Totoze Jun 08 '19

It's all about the advertising. Some time you sell an amazing product but its not represented correctly.

4

u/name_censored_ Jun 06 '19

Amazing. If you told someone from 20 years ago that Windows was opening up to F/OSS while Apple was doubling down on "Not Invented Here", they wouldn't believe you.

That said, it's good that basically all major OSs/distros have committed to phasing out Python2 one way or another - even RHEL/CentOS have stepped up to the plate.

1

u/DaOneTwo Jun 07 '19

That said, it's good that basically all major OSs/distros have committed to phasing out Python2 one way or another - even RHEL/CentOS have stepped up to the plate.

Makes sense to me because it will not be supported at all anymore in just 6 months....

1

u/swansongofdesire Jun 08 '19

Not supported by core python devs.

There’s a lot of python 2 code out there still.

Someone - whether it be ActiveState or Google will be maintaining a version for at years. At minimum, RHEL 8 is out only a month and supports python 2 so there’s another 10 years of support there.

3

u/sdrobertson Jun 10 '19

You're absolutely spot on. I can say with100% certainty (I'm their CTO) ActiveState plans on supporting Python 2 for many Operating Systems past it's official end of life.

We've created a brand new platform (http://platfom.activestate.com) and the state tool (command line client available now for Linux/Windows with Mac support on the horizon). One goal is to support these scripting languages when either the community or OS Vendors has moved on. The primary goal is to make building multi-language runtimes for your applications easier via the Platforms Build Farm. Ideally this will make it easier for communities to support their Languages on more Operating Systems.

I should note, if you're familiar with the Python 2 core and would like to get paid supporting it. We're hiring.

1

u/[deleted] Jun 07 '19

I don’t know anyone who doesn’t use a version manager to install and manage their language runtimes at this point.

1

u/[deleted] Jun 08 '19

lol "deprecating python" .

43

u/[deleted] Jun 06 '19

“I was worried the Python community would get stuck supporting some ancient version of Python...”

Lmao, the Python community getting stuck between an outdated system and a well-optimized and regularly updated live version? That would NEVER happen.

-3

u/H_Psi Jun 06 '19

The developers would never break back-compatibility between versions, that's ridiculous! /s

16

u/el_programmador Jun 06 '19

I hope that is sarcasm! Because as a windows user, I never had to depend on Microsoft for python, I always got it from https://python.org.

46

u/slavfox Jun 06 '19

I believe it's a reference to MacOS, which ships with a weird build of Python 2.7 that never works.

3

u/billsil Jun 06 '19

You mean an MKL compatible build. You complain now...it’s 5x faster.

2

u/[deleted] Jun 06 '19

I also have this python 2.7 installed on my windows 10 that I cannot uninstall. I have tried many times to uninstall it but it is installed again after the reboot.

2

u/beerchugger709 Jun 06 '19

Check your first run and active setup reg keys. Whomever built the installer for python 2.x sucks at building installers.

16

u/Linkeo Jun 06 '19

You can do what makes sense, but companies would use and develop in old built-in versions as present 2.7/3.4 experience is telling us.

5

u/[deleted] Jun 06 '19

Yeah, I thought even that version 3.7 was picked to mock us all.

If it is done the way parent says that sounds great.

1

u/Jonno_FTW hisss Jun 06 '19

I foresee a future in which an API change or deprecation causes software to stop working after a forced update.

1

u/ameoba Jun 06 '19

/me has 1.5.2 flashbacks

17

u/erogilus Jun 06 '19

Wish Apple would take a cue from this.

3

u/[deleted] Jun 06 '19

Iirc, Apple just announced that python will be removed from MacOS...

0

u/[deleted] Jun 06 '19

[deleted]

16

u/erogilus Jun 06 '19

That’s fair. It’s the same approach they took with Java and many smartphones took with Flash Player.

It’s just inherently insecure to have fresh OS installations with old and likely vulnerable scripting runtimes installed.

First thing I end up doing anyhow is installing homebrew and updating python manually.

6

u/ntrid Jun 06 '19

These old versions receive security updates so they arent any more likely vulnerable than latest versions. Actually they are even more secure because they are no longer in development, old issues get fixed, new features do not get added which does not increase attack surface.

2

u/spilk Jun 06 '19

I'll be curious to see how to install homebrew since the oneliner they currently provide depends on the presence of a ruby runtime. I imagine they'll switch to a shellscript or something to grab the ruby runtime first.

0

u/[deleted] Jun 06 '19

[deleted]

14

u/erogilus Jun 06 '19 edited Jun 06 '19

Well Windows 95 had its own optional Script Host (WSH) component, similar to batch files but more expansive. It became standard in Win98, and still exists to this day in modern Windows.

Out of the box it supports VBScript (.vbs) and MS JScript (.js, not JavaScript). It also can run other languages like Perl 5 and Python (.pys) with the appropriate suites or packages installed. In fact it supported a lot of IE automation via ActiveX.

Not to mention QBASIC was included with MS-DOS 5.0 and was available all the way up to Windows 2000 (no longer included).

So MS has a history with scripting lanagues a lot longer than you’d think. Actually QBASIC and a little vocoder script in an old magazine is what got me into coding as a wee lad!

4

u/toyg Jun 06 '19

Can WSH really run Python if installed...? How does it find out if it is? Does it work with py3?

2

u/erogilus Jun 06 '19

Yes I think it’s part of a suite called ActivePython, been a while since I’ve dabbled with it though.

1

u/Ericisbalanced Jun 06 '19

Man, I sometimes play with JScript for mainframe automation. The language is pretty weird, but you can’t pass things in by reference! Some mainframe scripts are translated from one language to another and VBScript has pass by reference and JScript does t so the their functions are broken.

13

u/mehum Jun 06 '19

Microsoft still sees value in Windows, Apple seems to view OS X as a legacy product that is a necessary platform simply to develop iOS apps.

0

u/[deleted] Jun 06 '19

[deleted]

11

u/mehum Jun 06 '19

Apple just aren’t that interested. They see the future in portable devices, and to be fair they have done a damn good job with iOS.

I just think that touchscreen devices are fine for consumers but useless for creators, which makes them profitable but dull.

14

u/toyg Jun 06 '19

Some classes of creators (artists, musicians, videomakers) can get a lot done with tablets. Not everything, but a lot - and increasing with each new release.

Developers, no, they will probably find tablets fundamentally restrictive forever, because their workflow really requires a “super typewriter” and they always find more ways to waste power (“yo dawg, I heard you liked VMs, so I put a VM in a VM to run other VMs”).

2

u/aztecraingod Jun 06 '19

Wonder at what point it would make sense for them to split up the company.

13

u/DBA_HAH Jun 06 '19

This is great.

16

u/el_programmador Jun 06 '19

Basically, I hate the concept of app stores on desktop machines. The old and tested method of .msi installs was great and working, I wonder what made them get rid of that. Now that WP flopped in the mobile market too, what's the use of having app stores on desktop pcs?

51

u/NekuSoul Jun 06 '19

Centralized and standardized automatic updates instead of each application rolling their own weird update mechanism.

4

u/pullandbl Jun 06 '19

Does it mean that when Py3.8 will be available it will install it automatically instead on 3.7? And what will happens with libraries and code that doesn't support it yet?

3

u/[deleted] Jun 06 '19 edited Jun 06 '19

Compatibility doesn't break with more recent versions of python 3. Python 3 broke compatibility with python 2, which is why it's taking over 10 years to get everything updated.

Edit : I was wrong, I didn't think about external libraries and other stuff.

7

u/mkdz Jun 06 '19

Not quite. I discovered yesterday that our code written in 3.6.8 breaks when upgraded to 3.7 because we're using Django 1.11. It's because of a fix with generator syntax. We have to upgrade to Django 1.11.5 before upgrading to Python 3.7.

1

u/ubernostrum yes, you can have a pony Jun 07 '19

We have to upgrade to Django 1.11.5 before upgrading to Python 3.7.

Hopefully you mean Django 1.11.17, since that's the one that fixed Python 3.7 compatibility (initially, the Django 1.11 didn't plan to support Python 3.7 at all).

Also, that was a weird one. This is the python-dev thread.

1

u/mkdz Jun 08 '19

Yeah, I didn't quite remember which Django version. We're probably on 1.11.5.

1

u/billsil Jun 06 '19 edited Jun 06 '19

They break compatibility every version and sometimes in minor versions. The issue was unicode is hard to get right when all the tutorials suck and nobody knows it. Taking a code base that worked and now having to fix it was hard. It was so bad people just said screw it. Also, python 3 was slower until 3.5.

I ported to python 3 a 100k lines code in 2 days, not counting unicode. I then spent a month learning unicode. It clicked when I figured out none of my encodings were utf8 and instead all latin1. I had minor bugs for the next 3 years.

0

u/[deleted] Jun 06 '19

[deleted]

1

u/mwpfinance Jun 07 '19

It's amazing that -- looking at the Issue for PyHive -- this took *over a year* for them to resolve in a release. What the absolute FLIP?

1

u/get_it_together1 Jun 06 '19

People who care can still manage and maintain the environments they need? I’m new in python and there seem to be several apps that make this easy. The list of persons that both randomly decides to use only the App Store python and needs to worry about a specific environment seems small

2

u/el_programmador Jun 06 '19

Centralized installs and updates can happen through robust CLI tools too such as pip/apt/composer/nuget/etc. Is there any special need to make it all grandiose like play-store does? If yes, then it should be an optional feature for those who are asking for it, not for everybody.

As for .msi, it is very much a standard format for installation and updates. In fact, there is a popular packaging system called chocolatey in the windows world which automates .msi installs.

6

u/Michaelmrose Jun 06 '19

By maintaining a curated list of sources instead a singular source for all software. This is more flexible but less secure

1

u/chief167 Jun 09 '19

if you think the windows store is curated, you're in for a bad surprise.

1

u/Michaelmrose Jun 09 '19

Choco relies on a list maintained by the author or authors not the windows store

1

u/mightymightyme Jun 06 '19

That's the way its gone, its very consumer friendly to have a store serve as a location of safe apps that are updated regularly. Windows is primarily a consumer OS. Anyone who needs a different version or wants better control will just uninstall it and setup their own environment.

20

u/Michaelmrose Jun 06 '19

There are so many things wrong with the old way

  • people have to find the correct web site and individually judge the trustworthiness of author and distributor with limited info on either. People are terrible at this.

  • Even legitimate software often bundles malware or "offers"

  • Without info about source material it is difficult to identify malicious software and facilitate its removal after the fact.

  • with no singular way to manage updates either you only get updates when you manually go back to the site or every app runs a process at startup or at all times to handle updates.

Package management allows maintainers to provide a curated set of known good software that operates in the users interests and notify users if software they have installed turns out to be erroneous or malicious.

1

u/[deleted] Jun 07 '19

linux

4

u/jantari Jun 06 '19

The old and tested method of .msi installs was great and working, I wonder what made them get rid of that.

Microsoft isn't getting rid of .msi and they have in fact published a successor standard that is even better in .msix

1

u/ship0f Jun 06 '19

I think he was refering to the python msi installer. Which btw they didn't get rid of aswell.

5

u/[deleted] Jun 06 '19

You have more control with walled garden. Seriously at least since 2000 (I'm sure it was earlier) Intel, AMD and Microsoft were introducing various mechanisms to have control over what code can run on their platforms. It is hard since PC started with being open and allowing you to run any code. When smartphones appeared they learned their main and started with locked up system. It's already 10 years since then and people got used to it, so Microsoft used windows phone as an excuse to try doing it again on the desktop.

3

u/alottalittleladles Jun 06 '19
  • moar telemetry data for them to sell

  • finer control over what you do with "your" machine

  • enforcing corporate deals: MS endorsed products only

1

u/[deleted] Jun 06 '19

.msi installs great and working

Have you ever used a package manager before? msi installation executables are a nightmare in comparison.

2

u/ship0f Jun 06 '19

Sure, but downloading and installing .msi (.exe) has always been the Windows way.
If you're a long time windows user thats the way you're going to try to install a program.
And it does work great.

Anyway, I'd give the store version a try once they remove the note from the official documentation -> https://docs.python.org/3/using/windows.html#the-microsoft-store-package

The Microsoft Store package is currently considered unstable while its interactions with other tools and other copies of Python are evaluated. While Python itself is stable, this installation method may change its behavior and capabilities during Python 3.7 releases

1

u/[deleted] Jun 06 '19

apt install FTW.

1

u/[deleted] Jun 06 '19

I was just thinking, "great, few years into the future we will try to make people move away from Python 3.7", but this sounds better.

1

u/quienchingados Jun 06 '19

mitigated? just your comment was enough to let us understand. Let them be.

1

u/FUN_LOCK Jun 06 '19

Does anyone know what happens for those of us with the microsoft store entirely disabled? Hoping I'll be able to just download an installer and not have windows try to destroy it.

108

u/manu_8487 Jun 06 '19

Funny, Apple just announced they will stop including scripting frameworks, like Python and Ruby because they don't want to update and maintain them.

142

u/xeloylvt Jun 06 '19

They are too busy with their new display stand support :)))

43

u/acu2005 Jun 06 '19

I mean if I'm paying a full thousand dollars for a monitor stand I better get fucking lifetime support on it!

22

u/gatorsya Jun 06 '19

Would you like add Genius expert support stand care plan at just $499/pm ?

2

u/soawesomejohn Jun 06 '19

You get a full year of support, then you can switch to AppleCare.

3

u/universal_beauty Jun 06 '19

Nice fucking meme m8

1

u/reddit_user13 Jun 08 '19

Display Stand: $999

Display Stand Support: $499

5

u/Slippery_John Jun 06 '19

They appear to be keeping Python 3

4

u/robberviet Jun 06 '19

Everyone who actually use ruby or Python install new version by themselves anyway.

9

u/chameleon_world Jun 06 '19

Doesn't macOS currently require Python 2.7 to function? I would hope they stop including it as it is being depreciated.

1

u/daniels0xff Sep 12 '19

I'm just installing latest version of 3.x with brew anyway.

-7

u/Newton715 Jun 06 '19

Probably makes sense since they can have swift to meet most of those needs.

45

u/[deleted] Jun 06 '19

And Apple is removing Python. What a time.

12

u/jimeno Jun 06 '19

as long as i can brew install python i'm fine. the real problem is the hardware is even more overpriced and less polished than before. proud owner of a 2012 mbp still going strong, but i seriously doubt i'll buy a mbp again.

2

u/[deleted] Jun 06 '19

Yeah I brew installed for 3. Still a little bummed.

2

u/mgazzola Jun 06 '19

Really? Oh I didnt know that

2

u/6c696e7578 Jun 06 '19

Maybe someone at apple could monitor that behaviour, because, I for one cannot stand it.

1

u/yanksrock1000 Jun 06 '19

Pretty interesting situation. On one hand it will now be even easier to manage my local versions of Python on my Mac. On the other hand, its possible I would have never started learning Python without it being preinstalled...

0

u/[deleted] Jun 06 '19

[deleted]

9

u/Rodot github.com/tardis-sn Jun 06 '19

You seem to be very ignorant about computer operating systems. Especially since most casual windows users are just as ignorant about computers, if not more so

0

u/[deleted] Jun 06 '19

They dont need to care stop crying like “people dont know to python mwaaa” this is not even an issue, install python yourself if you need to you computer using tree

8

u/[deleted] Jun 06 '19

Honestly I don't like this idea. Going to a website and clicking on "download" is not that much of a pain, especially when you know what version you want and how to install it. I never liked that Python (2) came with MacBooks, it caused more headaches than it solved, now Apple is going to stop but Microsoft starts?

5

u/thegunn Jun 06 '19

I can understand that but what's the harm in removing some more barrier to entry?

0

u/[deleted] Jun 06 '19

[deleted]

7

u/treesprite82 Jun 06 '19

Python won't be installed by default. There'll just be one of those stub entries that let you install it easier.

0

u/[deleted] Jun 06 '19

[deleted]

2

u/jantari Jun 06 '19

That's what PowerShell is for though.

Yea you'd like Python, but it's Windows so if you need to do that just use PowerShell instead.

24

u/pm_your_pc_setup Jun 06 '19

The source states it will be Python 3.7, which seems fine to me.

13

u/Wubbywub Jun 06 '19

i guess he's looking ahead? assuming microsoft continues including python 3.7 in the far future when we start using python 4+, ends up being like apple with python 2

13

u/pm_your_pc_setup Jun 06 '19

I am just happy, because the computers at my school are completely locked down. I can't install or use Python at school because of this, unless I use an online IDE that I can't use modules on. I would boot into Ubuntu, but we are not allowed to bring any sort of external storage or even a USB mouse.

4

u/[deleted] Jun 06 '19

Are you a part of the CS program or some other technical discipline? I’m a part of IT at my university and if people make a relevant request relating to their program we will normally do a deployment to those machines in the labs for that school.

Talk with a faculty member to get them to push and make a request. I have grad students in the engineering programs asking for special special stuff and as long as it’s not licensed we will usually accommodate them.

2

u/pm_your_pc_setup Jun 06 '19

I am majoring in CS at the local community college while attending high school, but it is a no-go on the whole "administration will understand." It is a small school, so there is no dedicated IT department. Instead, the office manager does the IT related tasks, although she has no Cisco certification, college degree, or past experience in any tech field. In fact, we are not allowed to bring a mouse to school, because "the drivers would fill up the computer and make it crash."

1

u/[deleted] Jun 06 '19

Sorry to hear that. Get your general Ed credits and move on to a proper school.

Best of luck.

1

u/lengau Jun 06 '19

Out of curiosity, have you tried pyodide?

1

u/Wubbywub Jun 06 '19

fair point but do school computers ever get updated? i see some of mine are still running windows 7 lol

1

u/pm_your_pc_setup Jun 06 '19

I'm at a STEM school, so we are lucky enough to have newer thinkpads with Windows 10.

-7

u/[deleted] Jun 06 '19

STEM school

thinkpads with Windows 10.

what a waste

3

u/EternityForest Jun 06 '19

Microsoft is slowly getting their act together it seems. They did VS code, they haven't trashed GitHub, they haven't sued Linux recently. They could find a reason not to update it, but I trust them way more than apple.

They do have a thing about backwards compatiblity though. It would be cool if python itself added a way to specify right in the source file what interpreter version should be preferred.

Or maybe python could stop making backwards incompatible changes without incrementing the major version, but that isn't gonna happen.

1

u/[deleted] Jun 06 '19

Or will they update it to the newest version every windows update and break your programs? Or what if you still want 3.6 and the Windows-installed 3.7 conflicts in unexpected ways? Generally I'm just in favour of packaging as little as possible with an OS, or with a new computer, and let users do what works for them, and if people aren't computer savvy enough to do that then they won't be coding anyways.

I'd be happy if they provide some option not to include it, but I doubt it as Windows has been moving more and more towards controlling what you have on your computer and how it operates.

6

u/SilkTouchm Jun 06 '19

Including python is really good. It means you can share python scripts to non-techies without having to compile it or telling them to download Python.

1

u/[deleted] Jun 06 '19

Yeah I can see that value in it

1

u/jantari Jun 06 '19

They aren't including python though ...

-2

u/pm_your_pc_setup Jun 06 '19

Yeah, the bloatware that comes with Windows 10 is pretty bad. I guess I agree if it was optional.

2

u/billsil Jun 06 '19

It is. It's going to be in the Windows Store, not part of Windows.

11

u/HeXagon_Prats Jun 06 '19

Most Linux distros come with Python preinstalled. It’s nice, like not having to worry about having a simple compiler for C/C++

13

u/angellus Jun 06 '19

The article is actually very misleading to the point the are trying to be deceitful.

you can get your Windows 10 installation updated to the latest version and use Python without having to download from Python.org.

Python will not be included in Windows by default. You still have to download them. PSF is going to start distributing Python via the Microsoft Store and Microsoft is putting in placeholder binaries for python and python3 that opens up the storage page to the latest Python install on the store page. Each version of Python will be a standalone installation, similar to how versions of Ubuntu are standalone installations for WSL.

1

u/[deleted] Jun 06 '19

Ok that's much better

4

u/kingrando1 Jun 06 '19

Steve Dower who is a core dev working at Microsoft led this I believe, so hopefully it won’t cause any headaches. He mentioned it a few months ago on the Talk Python to Me podcast.

3

u/Barafu Jun 06 '19

It seems to be a lot of pain for most users. Python on Android never got going because of this.

3

u/Newton715 Jun 06 '19

This bodes well for Microsoft to replace VBA with python as a scripting language in the office suite. I’d be very happy with that.

discussion

-2

u/firefrommoonlight Jun 06 '19

As long as Windows doesn't start relying on it. Python on Linux: Mess with the packages without using a Virtualenv, and break the OS.

3

u/[deleted] Jun 06 '19

Python on most GNU/Linux distros are recent enough for most admistrative task, and that's what it's there for. If you're not happy with the version, use virtualenv and stop whining.

0

u/[deleted] Jun 06 '19

This, for Red Hat or CentOS the python included is for the system, for example yum package manager is written in Python.

I would go further than suggesting using virtualenv. You don't want be tied to system Python at all, for example on these distros you actually can use http://ius.io repo and have access to any version of Python, you can even install multiple side by side, combining these with virtualenv your application is completely disconnected from the OS. There are equivalents on other systems, for example on FreeBSD they made a smart decision to make system base not depend on any accepting language, and similarly they provide all python versions packages.

On openSUSE I found opt-Python repo which similarly has multiple python versions and installs them in /opt to avoid conflicts with the system I'm sure other distributions have similar solutions

0

u/[deleted] Jun 07 '19

yea that's exactly what a stupid random windows person would do in a linux box

0

u/jyper Jun 06 '19

I love this idea

You can script the os out of the box

1

u/TheIncorrigible1 `__import__('rich').get_console().log(':100:')` Jun 06 '19

...PowerShell

0

u/FoodComputer Jun 06 '19

I'd be pissed if I downloaded an installer for some program and ran it and it told me to download and install all of its dependencies and then run it again. The installer for an application should install all dependencies.

The thing Windows is missing is a package manager. You should as a third party developer be able to declare your dependencies in a standard format that Windows will parse during the installation of your application and go out and install them. Commonplace things like Java and Python should be available through the package manager. I don't want to install 40 copies of the same Python version because the applications that depend on them are distributed as frozen binaries.

The Linux world successfully employs a variety of package managers and I don't know anything about Mac but I think their Homebrew is basically the same thing. There is an unofficial package manager for Windows called Chocolatey, but unless it magically becomes available by default or automated install (hey Windows I require Chocolatey so go out to the store and get it) then it does not really solve the problem.

Note: I've been a Linux user almost exclusively since 2009 so my knowledge of Windows is not really up to date.

58

u/emolinare Jun 06 '19

As a matter of fact I am perfectly fine with this plan.

Even though it may cause some issues, such as l programs designed for Windows being stuck on the only Python version that Microsoft decides to support. Which could theoretically and also actually hurt the further development of Python, the benefits of Python code working out of the box on all future windows machines, are huge. This will elevate Python penetration to never before seen levels, which will increase demand for Python among youth programmers.

As long as Microsoft can come up with a way of supporting multiple versions of Python, and they will have to, this is a good plan.

28

u/nemec Jun 06 '19

All this does is install Python from the windows store. As long as that continues to be updated, you will get the latest version. Windows 10 is not taking any dependencies on Python itself (which is the usual reason the Python version languishes in distros)

6

u/Deto Jun 06 '19

I would imagine that any serious applications will still just bundle a separate Python runtime with their install.

11

u/[deleted] Jun 06 '19 edited Oct 01 '26

[removed] — view removed comment

17

u/IamtheSlothKing Jun 06 '19

I think his point is that devs will target the version specifically running on Windows machines and fall behind in newer updates

2

u/[deleted] Jun 06 '19 edited Oct 01 '26

[removed] — view removed comment

4

u/MonkeyNin Jun 06 '19

That and

  • defaults encoding to ascii, must opt-in for unicode literals

  • 2.7 implicitly calls .encode and .decode, while py3 gives an error. (a good thing) (2 even allows you to call .encode on the result of .encode)

2

u/summonsays Jun 06 '19

As a web developer IE not following stanards is still a huge pain in my butt. I could see that happening easily to a specific version of python they decide to adopt.

28

u/who_body Jun 06 '19 edited Jun 06 '19

What I read was “python” will invoke python 2.7 and “python3” will invoke python 3.7. And I thought why continue this python3 thing....

Python should be the new python3

Edit: PEP 394 spells out related details

12

u/masteryod Jun 06 '19

It is in Arch and Fedora.

1

u/[deleted] Jun 06 '19

Ubuntu needs to get the hell on this.

1

u/[deleted] Jun 06 '19

I am on pyenv on ubuntu (pop!os actually) and this is my python. I have only had good experience with pyenv thus far.

$ python -c 'import sys;print(sys.version)'  
3.7.3 (default, May 27 2019, 22:56:43) 
[GCC 7.4.0]

0

u/jyper Jun 06 '19

I thought Arch fixed it to python3, or is it still wrong?

1

u/masteryod Jun 07 '19

https://www.archlinux.org/news/python-is-now-python-3/

Wow. It was 9 years ago. While people are still fricking out about Python 2 Arch wiped the slate clean almost a decade ago and everything was and is working just fine.

God, I love Arch.

2

u/jyper Jun 06 '19

Oh really thank God

It was so stupid that windows lacked python3 executable. On Mac/Linux you could just lunch python3 and on windows it was stupid and you had to install py launcher and run py -2

4

u/splashtech Jun 06 '19

I worked around this by setting some PowerShell aliases so when I launch `python` or `python3`, it does the expected things.

Obviously doesn't work outside of PowerShell, but does the job for me.

3

u/Datsoon Jun 06 '19

I run on windows exclusively, and "python" from the command line works. What were you expecting?

1

u/jyper Jun 06 '19

python to bring up python 2

python3 to bring up python3

Like on OSX/Linux

Instead unfortunately they're both named python. It made transitioning harder then it needs to be(Mac/Linux also have symlinks with point versions so you can also run python3.7)

1

u/AnomalyNexus Jun 06 '19

PS C:\Users\AN> python --version

Python 3.6.5

Windows 10

...I don't recall how I installed it, but I'd be very surprised if a future roll out references 2.7 by default

1

u/jyper Jun 07 '19

It's whatever python is in your path

If you have both 2 and 3 in path, first one wins. If you have multiple you need the confusing py launcher to be certain or use a full path

2

u/AnomalyNexus Jun 07 '19

I see. Thanks for explaining

1

u/Endemoniada Jun 06 '19

This is a whole thing, and not as simple as you may think. For example, what happens when python4 becomes a thing? Should “python” continue to point to 3, or should it just, one day, start pointing to 4 instead, potentially breaking stuff?

It would work if there was less dramatic shifts between versions and more backwards compatibility, but especially between 2 and 3 there just isn’t.

0

u/eissturm Jun 06 '19

"Python" should always point to the latest release on your machine, and older versions should be referenced like "python2"

We're still having this discussion 6 months from the end of python2 support because the community has been too scared to break anything. We need to make it the easiest route for people to use the latest version of Python

0

u/jyper Jun 06 '19

Nope

python3 binary is great, the only problem was that windows didn't have that command

1

u/who_body Jun 06 '19

The PEP394 ref clarified this

1

u/jyper Jun 06 '19

for the time being, all distributions shouldensure that python, if installed, refers to the same target as python2, unless the user deliberately overrides this or a virtual environment is active.

however, end users should be aware that python refers to python3 on at least Arch Linux (that change is what prompted the creation of this PEP), so python should be used in the shebang line only for scripts that are source compatible with both Python 2 and 3.

So arch didn't fix it? That's annoying

0

u/[deleted] Jun 06 '19

[deleted]

1

u/who_body Jun 06 '19

Thanks for the PEP reference

So python is the new “python2 | python3” with many nuances

5

u/foadsf Jun 06 '19

why? Windows needs a proper package manager like Chocolatey.

2

u/trmaphi Jun 06 '19

Or chocolatey windows store extension, just saying.

1

u/suffoh Jun 06 '19

This is good news, can't wait

1

u/zrb77 Jun 06 '19

Cool, can it not include all the other bullshit it comes with. Thx.

1

u/afro_coder Jun 07 '19

Python is great, mod_wsgi on the other hand a big pain in the ass because of windows libraries.

1

u/rushCtovarishchi Jun 08 '19

‘Bout fuckin time! I’ve been waiting for Windows to adopt Python compatibility for a long time, so this just made my day

1

u/jawalking Jun 06 '19

Personally this might be nice for me for OS bootstrap automation for driver testing. But this is going to get hairy in 5-10 years.

Apple made the right move. Anyone interested in scripting should be able to find the need version and run the installer.

An inbox native package manager on the other hand would be nice... “nuget install python37 vscode”

3

u/billsil Jun 06 '19

Apple made the right move.

Apple stopped updating their Python install.

4

u/dserodio Jun 06 '19

I think that's exactly his point

1

u/Rodot github.com/tardis-sn Jun 06 '19

Yeah, even on systems with an up to date Python install by default, the first thing I do is still install Anaconda

1

u/goldrunout Jun 06 '19

Isn't it already there? I haven't checked for years but I remember a thing called oneget that did that.

1

u/laranjadinho Jun 06 '19

Microsoft always late for the party

-3

u/cglacet Jun 06 '19

Wait, you mean that windows still exists?

-16

u/xeloylvt Jun 06 '19

I’m afraid even this move won’t save Windows.. you know, they also tried to include Ubuntu and other distros. Unfortunately I see this as an attempt of the Windows OS to piggy-back on something popular (time and again). Python rocks in part because it’s platform independent. And the community (which by the was also in part uses Windows) will not make a change in spirit just because Windows includes it. At least that’s my hope. Sorry for all that rant. You may release your tomatoes and eggs now :-D

6

u/MonkeyNin Jun 06 '19

I’m afraid even this move won’t save Windows.. you know, they also tried to include Ubuntu and other distros. Unfortunately I see this as an attempt of the Windows OS to piggy-back on something popular (time and again).

Um, what.

0

u/[deleted] Jun 06 '19

[deleted]

7

u/Michaelmrose Jun 06 '19

Are you on drugs. Couldn't malware be packaged WITH python if the miscreant so desired?

2

u/sneakernet-veteran Jun 06 '19

Powershell is the biggest attack surface worldwide. And there's 50 different ways to bypass execution policy. Windows will be fine.