Maths error

Nick Maclaren nmm1 at cus.cam.ac.uk
Tue Jan 9 15:15:06 EST 2007


In article <mailman.2493.1168371116.32031.python-list at python.org>,
Robert Kern <robert.kern at gmail.com> writes:
|> > 
|> >> No, don't.  That is about another matter entirely, 
|> > 
|> > It isn't.
|> 
|> Actually it really is. That thread is about the difference between
|> str(some_float) and repr(some_float) and why str(some_tuple) uses the repr() of
|> its elements.

Precisely.  And it also applies to strings, which I had failed to
notice:

>>> print ("1","2")
('1', '2')
>>> print "1", "2"
1 2


Regards,
Nick Maclaren.



More information about the Python-list mailing list