calculating system clock resolution
Sybren Stuvel
sybrenUSE at YOURthirdtower.com.imagination
Sat Apr 8 12:28:45 EDT 2006
jUrner at arcor.de enlightened us with:
> Is it mentioned somewhere that print truncates floats ?
'print' prints str(time()). On the interactive prompt, you see
repr(time()). float.__str__ truncates. I don't know where it's
documented, but this is the reason why you see the truncation.
Sybren
--
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
Frank Zappa
More information about the Python-list
mailing list