Author vstinner
Recipients georg.brandl, mark.dickinson, vstinner
Date 2009-09-07.23:27:36
SpamBayes Score 2.25354e-05
Marked as misclassified No
Message-id <1252366058.17.0.583904477684.issue5080@psf.upfronthosting.co.za>
In-reply-to
Content
+10. It would fix the os.urandom(1.2) bug. On Linux, os.urandom() displays
the following warnings and then go into an unlimited loop...

/usr/lib/python2.5/os.py:734: DeprecationWarning: integer argument expected,
got float
  bytes += read(_urandomfd, n - len(bytes))

read(1.2 - 1) ~> read(0.2) ~> read(0)...

Tolerate float as integers introduces "subtle" bugs like byte/unicode bugs...
History
Date User Action Args
2009-09-07 23:27:38vstinnersetrecipients: + vstinner, georg.brandl, mark.dickinson
2009-09-07 23:27:38vstinnersetmessageid: <1252366058.17.0.583904477684.issue5080@psf.upfronthosting.co.za>
2009-09-07 23:27:36vstinnerlinkissue5080 messages
2009-09-07 23:27:36vstinnercreate