end of print = lower productivity ?
Terry Reedy
tjreedy at udel.edu
Mon Dec 1 20:42:39 EST 2008
alex23 wrote:
> On Dec 2, 5:12 am, Alan G Isaac <ais... at american.edu> wrote:
>> One obvious cost is that working at the
>> interpreter prompt is now slightly less
>> convenient.
>
> Not if you use IPython:
>
> IPython 0.8.1 -- An enhanced Interactive Python.
> ? -> Introduction to IPython's features.
> %magic -> Information about IPython's 'magic' % functions.
> help -> Python's own help system.
> object? -> Details about 'object'. ?object also works, ?? prints more.
>
> In [1]: def prnt(x): print x
> ...:
>
> In [2]: prnt "test"
> ------> prnt("test")
> test
>
> In [3]: prnt 1+1
> ------> prnt(1+1)
> 2
And not in either Python or IDLE:
>>> 'test'
'test'
>>> 1+1
2
More information about the Python-list
mailing list