[docs] [issue16609] float loses precision when passed to str()

Antoine Pitrou report at bugs.python.org
Tue Dec 4 21:29:05 CET 2012


Antoine Pitrou added the comment:

I agree with Mark here. This isn't specific to random.random() and it's already covered elsewhere in the documentation.

Furthermore, I don't know why you're using str() on random.random(). There are better ways to get random strings, such as random.getrandbits() or os.urandom().

Recommend closing.

----------
nosy: +pitrou
resolution:  -> invalid
status: open -> pending

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16609>
_______________________________________


More information about the docs mailing list