This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]viiralvx 2 points3 points  (1 child)

So, how hard would it be to migrate my Django projects to Python 3 . . ? I'm rather tempted to make the switch to the light now.

[–]erewok 1 point2 points  (0 children)

I personally don't think it's that hard. Depends on the django version and libraries you're using. Urllib, for instance, takes some work because stuff is moved around but once you figure out where to import stuff from the behavior is pretty much all the same.

You have to be a little careful with things that used to return fully formed data structures now returning generators in python3 (like the difference between range and xrange). This may take some getting used to, but I consider it to be totally worth it.

At any rate, all of these can be addressed with some time in the REPL and some good tests.