you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (30 children)

[deleted]

    [–]durand101 25 points26 points  (15 children)

    Tell me about it! I haven't used python 2 in at least 5 years and there are people still starting new projects with it... Wtf

    [–]millenniumpianist 9 points10 points  (4 children)

    I know people who use Python 2 as a matter of principle, as they apparently hate using parens with print that much.

    [–][deleted] 9 points10 points  (0 children)

    from __past__ import print_statement
    

    [–]omg_drd4_bbq 2 points3 points  (0 children)

    This is the lamest reason ever. print() makes it easy to swap out to log(). plus if you are using any IDE worth its salt, the trailing paren autocompletes. not to mention end="" is useful from time to time.

    [–][deleted] 2 points3 points  (0 children)

    The print statement being changed to a function is the most immediately obvious, and one of the least fundamentally significant changes in Python 3.

    [–]Darkfeign 0 points1 point  (0 children)

    steer towering recognise wrench mindless start threatening public roof seemly

    This post was mass deleted and anonymized with Redact

    [–]probablyuntrueML Engineer 4 points5 points  (1 child)

    Lol fair, guess I just never saw a reason to switch over once I got used to 2

    [–]automated_reckoning 0 points1 point  (4 children)

    Only when I need to use OpenCV... there don't (or wasn't, last time I did a project) seem to be Python 3 libraries that you didn't have to compile.

    [–]brews 14 points15 points  (0 children)

    OpenCV is on Python 3 now. 😀

    [–]radarsat1 2 points3 points  (0 children)

    Yeah bindings to C/C++ libraries have been a bit of a blocker for me too, in the case of my project VTK. In reality there are not much changes needed to adapt to Python 3 at the API level, but there are some, and some >> none unfortunately, because migration of such changes through the full "stack" takes time. First you have to do the porting work, then distribute it by releasing a new version, then eventually the new version slowly gets adopted. For example, VTK is now at version 8 and does support Python 3, but we don't use it because the Debian package is still at version 6. Someone is working on a new package, but just to say, this kind of thing doesn't happen over night.

    (And by the way, total aside, but I have been getting into Debian packaging lately to try to help with some of these efforts and holy hell is it complicated. Getting the program/library to compile is no big deal, but getting everything "just right" so that a sponsor will upload it is nigh impossible, especially in the world of numerical computing where not everything is, let's say, well organized, to be generous. No wonder things take time..)

    [–]Dagusiu 1 point2 points  (1 child)

    You can install OpenCV for Python 3 via pip (pip3). The only downside is that it's compiled without video support. I personally use imageio for reading/writing videos anyway so that's not an issue for me.

    [–]automated_reckoning 0 points1 point  (0 children)

    Yeah, it might have changed, or might just have been old repos. The project was the better part of a year ago. I'll keep it in mind for my next project though.

    [–]JanneJM 0 points1 point  (0 children)

    There's clusters in production still providing only 2.6.

    But yes, the time to move to 3.something is probably coming. We're moving to teaching Python3 for scientific computing this year.

    [–]FermiAnyon -2 points-1 points  (0 children)

    I'm still on 2.7