Re:Fedora Linux will switch to Python 3 by default
by gnur on Thursday October 24, 2013 @07:11AM
(#6604529)
One of the main differences with different PHP versions is that python 3 is not backwards compatible. Also, even after all these years, there are still quite some python projects that don't support python 3 (examples: mysqldb/twisted).
Just switching the interpreter from 2 to 3 is surely something that will give a lot of headaches.
[ Parent
| on HN ]
Re:Fedora Linux will switch to Python 3 by default
by alcari on Thursday October 24, 2013 @07:34AM
(#6604595)
No, PHP minor versions are not necessarily compatible with each other. When I worked in web hosting, we had to deal with quite a few issues resulting from changes between 5.2 and 5.3, and later 5.3 and 5.4.
At least Python has a sane versioning scheme, where breaking compatibility increments the major version number or is a bug.
Re:Fedora Linux will switch to Python 3 by default
by deelowe on Thursday October 24, 2013 @09:25AM
(#6605095)
I think the OP's point was that python 3 was never intended to be backwards compatible and intentionally broke compatibility in several places. For this reason, 2.7 continued to be supported for quite some time. I don't know a lot about PHP, but I'm guessing this was not the case for their minor version updates.