It Will Take Fedora More Releases To Switch Off Python 2 (phoronix.com)
An anonymous reader quotes Phoronix:
Finalizing Fedora's switch from Python 2 to Python 3 by default is still going to take several more Fedora release cycles and should be done by the 2020 date when Python 2 will be killed off upstream. While much of Fedora's Python code is now compatible with Py3, the /usr/bin/python still points to Python 2, various python-* packages still mean Python 2... The end game is to eventually get rid of Python 2 from Fedora but that is even further out.
Fedora is now gathering feedback on a Wiki page explaining the switch.
Fedora is now gathering feedback on a Wiki page explaining the switch.
Switching `python3` to `python` is just inane at this point. Get rid of `python` in general and explicitly call what you need, the problem will resolve itself over time, and there will not be a problem with python4 following in suit. Either that or go the java route (which is also a nightmare to manage).
--
tora
tora
Python developers themselves have stated in PEP 394 that /usr/bin/python should *not* be linked to python3. Instead scripts should just use #!env python3 explicitly in the shebang to requestion python 3.x Or python4, or python5, as those generations are some day released.
I think it's Arch linux that changed /usr/bin/python to point to python3, but this is not recommended by any Python developer and horribly breaks things unnecessarily and is incompatible with all other distros. Besides if /usr/bin/python pointed to python3, and if python4 comes along, we'd have to go through all this rubbish again. Explicit in this case is better than implicit.
Why not just eliminate Python completely and free us all from it's terrible reign? ;)
Agreed. Since node.js is cool now with the hipsters lets all vote for it! After all the PHb's Looove standards and less things to support is always better.
http://saveie6.com/
I believe if you recall correctly, they weren't completely incompatible.
1) Mac OS 8.x and later began forcing developer to the Carbon API... which was certainly better than doing things like waiting or hardware timers and injecting values into kernel space to change window titles.
2) Mac OS X shipped with the Carbon API which means that if a developer put most of his/her effort into porting their apps to Carbon, it should have just been a recompile.
3) Mac OS X shipped with Classic mode compatibility which had about a 98% success rate in running earlier Mac software... from OS 9 and Apple even maintained and updated OS 9 for a few versions to support newer Carbon APIs for the hold outs.
4) Every time Apple sneezed all software had to be recompiled for Mac. I'm not sure if you remember, but Adobe made their fortune selling upgrades with every version of Mac OS because going from Mac OS 5.0.1 to Mac OS 5.1 would move memory locations and all software would need to be updated and Adobe charged for that.
BTW I was coding on Mac OS X back when it was called Yellow Box and shipped with the Mac Classic desktop. For nearly a year, I worked on an operating system which in every possible way was in fact Mac OS 10. The only thing that made Mac OS X less of a Mac OS was that it actually did work with earlier software most of the time.
Python has long had the problem of trying to provide the 'right' answer and anytime they decided they at one point had the 'wrong' answer, they change minds and break compatibility, for the sake of the newcomers to the current language.
On the one hand, it means python doesn't have to contend with problems other languages have of needing to support old syntaxes and mechanisms that are pretty ugly (Javascript has accumulated tons of different ways of supporting object oriented design).
On the other mind, it is frustrating as hell to provide python software to third parties to use with their interpreter of choice. Even when you go through all sorts of hell to make sure it works on python 2.6, 2,7, 3.3, 3.4, 3.5, and 3.6, some python zealot will still bitch about 'oh, you shouldn't be supporting 2 at all, especially not 2.6', not caring that you have tons of users still using 2.6 that you'd rather not tell to fuck off.
XML is like violence. If it doesn't solve the problem, use more.
sizeof(int);
The base types in C are implementation/platform defined. That is considered a feature as it allows decisions to be made that make the most sense for the platform. In general this means the int type is going to be the fastest type.
In modern C practices though there are the u_intXX_t types that allow you to select a specific size integer, should you need that.
The real flaw with C is the whole preprocessor mess. If you were going to attack C about something, that is what you aim at.