News for hackers. Stuff that matters.
Re:About Python 3 by paskakapu on Tuesday December 31, 2013 @08:57AM (#6990425)
python3 destroyed it's ability work as simple calculator. Try this on python3:

>>> answer = 1 + 1 >>> print answer

Re:About Python 3 by dded on Tuesday December 31, 2013 @02:39PM (#6992404)
I don't have Python3 handy, but in Python2 I do this:

  >>> answer = 1 + 1
  >>> answer
  2
Doesn't Python3 work the same way?

In any case, my PYTHONSTARTUP has this line:

  from pprint import pprint as pp
and I find pp() very nice for printing various structures.