It was my understanding that python will print the repr
of the output, but this is apparently not always the case. For example:
In ipython:
In [1]: type([])
Out[1]: list
In [2]: set([3,1,2])
Out[2]: {1, 2, 3}
In python:
>>> type([])
<type 'list'>
>>> set([3,1,2])
set([1, 2, 3])
What transformation does ipython apply on the output?
1.1.0
on python2.7.5
– Schelling