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

Dec. 4, 2012
8:29 p.m.
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@bugs.python.org> <http://bugs.python.org/issue16609> _______________________________________
4488
Age (days ago)
4488
Last active (days ago)
0 comments
1 participants
participants (1)
-
Antoine Pitrou