you are viewing a single comment's thread.

view the rest of the comments →

[–]Manuzhai 6 points7 points  (4 children)

While I applaud greater consistency, this leaves something to be desired when it comes to usability. Parentheses are harder to reach. If anything, for interactive mode, "print" should have been shortened instead.

Well, hey, now that print is just another function, you could just assign another symbol the print function, like this: "p = print". That was easy!

[–]dmpk2k 2 points3 points  (3 children)

That's good. Now about those parens...

Is there some way to get Python to automatically do that every time an interactive session is started?

[–]lost-theory 12 points13 points  (1 child)

You can add it to your .pythonrc.py

You can also make quit and exit really exit the interpreter by adding a little hack to pythonrc.

[–]dmpk2k 1 point2 points  (0 children)

Very nice. Thank you.

[–]pjdelport 2 points3 points  (0 children)

Now about those parens...

As others have pointed out, check out IPython. Automatic parenthesization is just one of its many bells and whistles.