Bizarre floating-point output
Nick Maclaren
nmm1 at cus.cam.ac.uk
Mon Jan 8 12:08:22 EST 2007
In article <mailman.2425.1168272626.32031.python-list at python.org>, Fredrik Lundh <fredrik at pythonware.com> writes:
|> Nick Maclaren wrote:
|>
|> > The use of different precisions for the two cases is not, however,
|> > and it is that I was and am referring to.
|>
|> that's by design, of course. maybe you should look "repr" up in the
|> documentation ?
I think that you should. Where does it say that tuple's __str__ is
the same as its __repr__?
The obvious interpretation of the documentation is that a sequence
type's __str__ would call __str__ on each sub-object, and its __repr__
would call __repr__.
Regards,
Nick Maclaren.
More information about the Python-list
mailing list