[issue1560032] confusing error msg from random.randint

Daniel Diniz report at bugs.python.org
Mon Mar 30 08:21:02 CEST 2009


Daniel Diniz <ajaksu at gmail.com> added the comment:

Paul,
I meant no disrespect, but it seemed to me not even you wanted it fixed
(as you never replied to Georg's comment). I stated I'd close this issue
unless someone wanted it fixed.

I'm reopening it, as you do want it fixed :)

FWIW and IMHO, I don't see much improvement from a message saying
"randint() takes exactly 2 arguments (1 given)". So I think it's
possible it can be considered invalid, even after all this time.

Anyway, if you can provide a patch (or even a specification) that makes
the message clear without introducing too much code complication, I'm
sure getting this fixed this will be much more likely.

(nice link BTW, I read it back then and I think I'm following his advice
where needed)

----------
stage:  -> test needed
status: pending -> open

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


More information about the Python-bugs-list mailing list