10 ms·
>its healthy consideration for backwards compatibility Like screwing the huge majority of users with Python 2.x Django projects and having them update or be le
by coldtea 10y ago
>its healthy consideration for backwards compatibility
Like screwing the huge majority of users with Python 2.x Django projects and having them update or be left behind?
- danpalmer 10y agoWell it has been on the roadmap for around 3 years, and they will have support for Python 2 in active maintenance for the next ~3 years, so I think this is actually fantastic support from the core team.
- gtaylor 10y agoIt's going to be more and more of a burden for the developers to maintain compatibility with a 7-year old version of Python. I think this is smart and will help them focus on the road forward. Django 1.11 is an LTS release, so legacy stuff can stick with it and be just fine.
- coldtea 10y ago>It's going to be more and more of a burden for the developers to maintain compatibility with a 7-year old version of Python. That's the version of Python that most of their users actually use -- with no major plans of mass updating.
- pmontra 10y agoBut the Python developers will abandon v2 sooner or later, so IMHO it's wise to start following the bilingual development guidelines https://wiki.python.org/moin/PortingToPy3k/BilingualQuickRef https://wiki.python.org/moin/PortingToPy3k/BilingualQuickRef and eventually upgrade to v3. What are the alternatives? Forking the language or switching to another language look to have a higher cost.
- throwawayish 10y agoYeah no. I know that there are domains that are mostly on Python 2, and of course you'll always have legacy / unmaintained things lying around. But "zeee majoritie is Python 2.7!!1111" does not become true by some people chanting it over and over again. The simple fact that frameworks and libraries are moving away from Python 2 already proves that the majority does, in fact, not use Python 2. Otherwise maintainers would also be in an approximate majority to block/veto such changes.
- coldtea 10y ago>But "zeee majoritie is Python 2.7!!1111" does not become true by some people chanting it over and over again. Maybe check your language a little? "zee majoritie", "chanting it over and over" etc, gets tired and offensive soon. That aside, there are actual numbers for Pypi supporting that. What do you have to counter these? >The simple fact that frameworks and libraries are moving away from Python 2 already proves that the majority does, in fact, not use Python 2. It just proves that after 7+ years, some frameworks and libs managed to justify porting over to 3 too. It doesn't say much about which is used more.
- LeifCarrotson 10y ago> there are actual numbers for Pypi supporting that. What do you have to counter these? 99% of Pypi traffic is composed of mirrors and bots. Python 3 toolchains are more likely to use tools like devpi, wheel, and Docker to cache their packages, while Python 2 toolchains are often going to hit Pypi directly. We're concerned about which version has the majority of users, not about which has more downloads on Pypi.
- lima 10y agoExactly. PyPi numbers are totally meaningless. It's commonly used for installing applications (that's how packages like supervisor end up in the top 20) and used in all sorts of CI scenarios. Every OpenStack build, for example, pulls in hundreds of packages from PyPi. In terms of real-world use, all of the Python devs I personally know moved to Python 3.
- gtaylor 10y agoWe'll just have to see. That's the beauty of this. Don't want to upgrade? Stick with Django 1.11, since you don't want or need new things. It's LTS, so you won't miss out on critical fixes.
- sametmax 10y agoThe ruby community moved on after their last breaking change in less than 2 years. The JS community deals with breaking changes every 3 months or so. From Python 3.0 the end of support, you have __15 freaking years__, warnings, tutorials and excellent tooling at your disposal. Oh, on a free software. Half made by some charity workers. Now you made a choice, and there are very good reasons to have made it. We won't criticize it. But you lost the right to complain.
- TylerE 10y agoRuby also BROKE A LOT LESS, and offered immediate, tangible reasons to upgrade.
- gtaylor 10y agoThe reasons to upgrade are often dependent upon your usage case. To me, the Unicode improvements are reason enough on their own before you even get into the other great stuff (async work, type hinting, stdlib cleanup, pyc rework, etc). asyncio is going to be a slow build, as the ecosystem starts unifying around it. But as that happens, we'll be much better off for it.
- TylerE 10y agoRuby offered an immediate 25% performance increase. That's a lot less niche than Unicode.
- cdelsolar 10y agoUnicode is niche?
- sametmax 10y agoLOL, "niche", says the english native. Plus, 25% of performance, while nice, is not really something that would matter for most Ruby projects. They are web projects, and their bottleneck is not Ruby. Same for Python. While I'm telling you, good unicode support in most european countries is a HUGE deal. But that's not all. Often People thinking about Python 3 think unicode, but for me there are 2 other things that made my life much nicer: - better debugging. Error handling is a hell lot better, with better and messages, greater granularity, more safety nets... E.g: you can't compare some objects anymore, you have several exceptions to handle file opening, imports are absolute by default, division is what you expects, a lot more operations are lazy, the stdlib has been cleaned manu redundancies, encoding parameters everywhere, etc. - less verbosity. Writting is consistently reduced. You get finner file boilerplate, shortcuts for OO, unpacking generalization, yield from, f-strings, etc. Now those are things that are not easy to sell. You don't see them as a reason to migrate when you hear about it. But once you used to them, going back to Python 2.7 feels so bad.
- bildung 10y agoIt was pretty clear for multiple years that Django would eventually migrate to python3 only. Even regarding library support, I've started going python3-only with my Django projects at the beginning of 2015 and had practically zero problems, as only some esoteric packages were not supporting python3 (and then I wouldn't have used them for client projects anyway, because esoteric). I still have one customer with a Django/python2 code base. When migrating to Django 1.11 in 2017, that project gets security updates until at least 2020. Plenty of time to gradually transition to py3. I honestly don't see the problem.
- raverbashing 10y agoDjango and most libraries were already working seamlessly 2 years ago Python 2.7 will EOL in 2020. But I guess even then some luddites will complain how they will have been left hanging
- throwawayish 10y agoWhen I started with Python - around 2011ish - Python 2.7 on Windows (with Qt 4) was a reasonable choice. Not much later almost everything I did was on Python 3. No regrets, no looking back, and no missed opportunities.
- ergo14 10y agoPython 2.7 will not be maintained by PSF soon anyways.
- tedmiston 10y agoThe Python 2.x EOL was extended to 2020.
- JCzynski 10y agoI suspect Python 2.x will be extended like copyright.
- djsumdog 10y agoI doubt it and that argument makes no sense. Copyright is extended thanks to the lobbying effort of huge business like Disney in order to make a ton more money. Unless you see some big corporate support contracts coming over the horizon for PSF, not to mention they'd have to be worth the money vs the technical debt, I don't think Py2 support will get extended.
- JCzynski 10y agoBacklash from the tons of big companies still using it will become lobbying to keep it supported. I don't expect them to stop in the next couple years, or the next few, etc. There's less muscle behind keeping Python 2, but there's a lot less muscle needed to keep it going than to extend copyright.
- dragonwriter 10y agoWhich, I believe, is also the support timeline for the Django 1.x LTS release before 2.0. So Django plans to support Python 2.x as long as the PSF does.
- ergo14 10y agoYeah thats 3 years for now... thats very little time - especially if you have to migrate old projects.
- luckydata 10y agothey aren't screwing anyone, if you want to stay on an outdated version of a language that won't be receiving updates you can do the same with Django.
- dagmx 10y agoYou're complaining about not being able to use the latest major version of a library when you refuse to change to the corresponding latest version of the language? So you want to stay cutting edge here but not there? That's illogical and inconsistent. they're providing an LTS release for you. Get over it
- urda 10y agoProtip: Python 2 is EOL'd in 2020. Start your migration now.