Emile comments on Open Thread: July 2010, Part 2 - Less Wrong

6 Post author: Alicorn 09 July 2010 06:54AM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (770)

You are viewing a single comment's thread. Show more comments above.

Comment author: Emile 09 July 2010 08:22:21PM *  3 points [-]

Not in python 3 ! range in Python 3 works like xrange in the previous versions (and xrange doesn't exist any more).

(but the print functions would use a different syntax)

Comment author: apophenia 10 July 2010 07:30:40PM 4 points [-]

In fact, range in Python 2.5ish and above works the same, which is why they removed xrange in 3.0.

Comment author: billswift 10 July 2010 11:18:24AM 1 point [-]

There was a discussion of transitioning to Python 3 on HN a week or two ago; apparently there are going to be a lot of programmers, and even more shops, holding off on transitioning, because it will break too many existing programs. (I haven't tried Python since version 1, so I don't know anything about it myself.)

Comment author: Emile 10 July 2010 03:13:22PM 2 points [-]

A big problem with transitioning to Python 3 is that there are quite a few third-party libraries that don't support it (including two I use regularly - SciPy and Pygame). Some bits of the syntax are different, but that shouldn't be a huge issue except for big codebases, since there's a script to convert Python 2.6 to 3.0.

I've used Python 3 but had to switch back to 2.6 so I could keep using those libraries :P

Comment author: Liron 10 July 2010 01:49:22AM 0 points [-]

Cool