News for hackers. Stuff that matters.
Re:New IPython release drops Python 2.7 support by scrollaway on Thursday April 20, 2017 @02:25PM (#14159360)
I think the main issue is library compatibility, which gives people the impression that compatibility is an unreachable target.

The truth is, once most libraries are 3.x compatible, porting is very easy (as easy as a 2.x -> 2.y transition). And now, we've reached that point. People are starting to catch up.

There are some exceptions of course, those who heavily rely on 2.x unicode behaviour and such, but all in all they are rare. So now, it's much easier than it used to be.

Re:New IPython release drops Python 2.7 support by eikenberry on Thursday April 20, 2017 @04:44PM (#14160669)
> as easy as a 2.x -> 2.y transition

You mean I can just run all my python2 programs with python3 runtime with no changes at all. Because that was how every upgrade before python3 went.

Re:New IPython release drops Python 2.7 support by pekk on Thursday April 20, 2017 @06:43PM (#14161555)
This is simply not true. For example, Python 2.6 deprecated string exceptions. If you expect in any language to write code and have it run forever, you expect that language never to change.
Re:New IPython release drops Python 2.7 support by cookiecaper on Thursday April 20, 2017 @08:31PM (#14162130)
Yep. It's not Python-exclusive either. I can't upgrade to Ruby 2.4 yet because one of my dependencies hasn't been updated.

Breaking changes are a routine thing in any maintained language; heck, even a conservative project like GCC breaks code between major releases.

Re:New IPython release drops Python 2.7 support by Chris2048 on Thursday April 20, 2017 @08:32PM (#14162137)
Were string exceptions deprecated in 2.6 because they don't exist in py3?
Re:New IPython release drops Python 2.7 support by scrollaway on Thursday April 20, 2017 @09:10PM (#14162300)
String exceptions don't exist in py3 because they were deprecated in 2.6.
Re:New IPython release drops Python 2.7 support by scrollaway on Thursday April 20, 2017 @05:43PM (#14161197)
Nearly all my code co-runs on 2.7 / 3.6 with almost no hacks. So, yes.
Re:New IPython release drops Python 2.7 support by Chris2048 on Thursday April 20, 2017 @08:33PM (#14162138)
And your code is all code?
Re:New IPython release drops Python 2.7 support by scrollaway on Thursday April 20, 2017 @09:09PM (#14162298)
https://github.com/jleclanche

The code that doesn't run on Python 2+3 only runs on Python 3. Have at it.

Re:New IPython release drops Python 2.7 support by Chris2048 on Friday April 21, 2017 @06:06AM (#14164258)
What is your point here?
Re:New IPython release drops Python 2.7 support by scrollaway on Friday April 21, 2017 @08:46AM (#14165029)
What is yours? You're the one asking.
Re:New IPython release drops Python 2.7 support by Chris2048 on Friday April 21, 2017 @12:55PM (#14167229)
Asking what?

eikenberry asked: "can just run all my python2 programs with python3 runtime with no changes at all"

You replied: "Nearly all my code co-runs on 2.7 / 3.6 with almost no hacks. So, yes.", implying that, yes, you can run py2 programs without change, because this is true of your code

To which I replied "And your code is all code?"; Meaning, just because this is true of your code, doesn't mean it is true of eikenberry's code, or any/all code.

You then responded with a project that apparently runs fully on py3, but only partially on py2 - what is the point you are making by posting that project?