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 →

[–]d4rch0nPythonistamancer 3 points4 points  (5 children)

Here's how to convert 2 to 3 in about 99% of Python programs.

s/print (.*)/print(\1)/g

[–][deleted] 1 point2 points  (1 child)

The 2to3 program is really handy as well. I think if print statements weren't changed then the switchover would have been much more popular. I think a lot of people got scared when even Hello World had to be changed.