[issue4979] random.uniform can return its upper limit

2009-01-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The distinction between and = is fairly meaningless when applied to a computed floating-point result. I think the docs should be fixed to replace the with =. In any case, the b = N a bit has the inequalities the wrong way around:

[issue4979] random.uniform can return its upper limit

2009-01-18 Thread Gabriel Genellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment: Doc update -- keywords: +patch nosy: +gagenellina Added file: http://bugs.python.org/file12784/random.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4979

[issue4979] random.uniform can return its upper limit

2009-01-18 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, applied in r68724. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4979

[issue4979] random.uniform can return its upper limit

2009-01-17 Thread Max Hailperin
New submission from Max Hailperin m...@gustavus.edu: The documentation for random.uniform says that random.uniform(a,b) should return a number strictly less than b, assuming ab. (The result should be strictly less than a if ab.) Thus both of the following expressions should always evaluate