Pep 3105: the end of print?
Steven D'Aprano
steve at REMOVE.THIS.cybersource.com.au
Thu Feb 22 05:07:27 EST 2007
On Thu, 22 Feb 2007 16:29:17 +1100, Peter Mayne wrote:
> Why use print in the interactive interpreter? Just type the expression.
Many reasons. Here are four:
>>> print None
None
>>> None
>>> print 0.1
0.1
>>> 0.1
0.10000000000000001
>>> print 'null = \0'
null =
>>> 'null = \0'
'null = \x00'
>>> print 1, 2, 3
1 2 3
>>> 1, 2, 3
(1, 2, 3)
I'm sure you can find your own examples.
--
Steven.
More information about the Python-list
mailing list