[issue1560032] confusing error msg from random.randint

2010-11-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This is related to the more general issue of how to report a wrong number of arguments in a method call; I don’t remember if it was a python-dev discussion, a python-ideas one or a bug report. random is not the only module where instance

[issue1560032] confusing error msg from random.randint

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Sorry, it's time to close this one. The code is not buggy, it is documented as being a bound method and that is a perfectly acceptable python coding style to use bound methods as callables. It's also been around for a

[issue1560032] confusing error msg from random.randint

2010-08-24 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- stage: unit test needed - patch review versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1560032

[issue1560032] confusing error msg from random.randint

2010-07-24 Thread Petras Zdanavičius
Petras Zdanavičius petra...@gmail.com added the comment: I have written a patch thats makes these strange error messages go away. What actually I have done was something like this: randint = _inst.randint Was replaced with: def randint(a, b): return _inst.randint(a, b) But I do not

[issue1560032] confusing error msg from random.randint

2009-04-21 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: Don't worry :) Tagging as a Bug Day candidate. -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1560032 ___

[issue1560032] confusing error msg from random.randint

2009-03-30 Thread Daniel Diniz
Daniel Diniz aja...@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

[issue1560032] confusing error msg from random.randint

2009-03-30 Thread paul rubin
paul rubin p...@users.sourceforge.net added the comment: Daniel, thanks--I didn't mean to jump on you, so I'm sorry if it came across that way. Maybe I'm a little oversensitized to this issue due to some unrelated incidents with other programs. I'll try to write a more detailed reply and maybe

[issue1560032] confusing error msg from random.randint

2009-03-29 Thread Daniel Diniz
Daniel Diniz aja...@gmail.com added the comment: I'll close this as won't fix unless someone wants to fix this. -- nosy: +ajaksu2 status: open - pending type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.4 ___ Python tracker

[issue1560032] confusing error msg from random.randint

2009-03-29 Thread paul rubin
paul rubin p...@users.sourceforge.net added the comment: ajaksu2, I don't understand why you want to close this bug if it isn't fixed. I can accept that it's not the highest priority issue in the world, but it's something that trips up users from time to time, and it ix obviously fixable.