[issue1560032] confusing error msg from random.randint

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger 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 *very* long without causing issues b

[issue1560032] confusing error msg from random.randint

2010-11-21 Thread Éric Araujo
Éric Araujo 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 methods are used as modu

[issue1560032] confusing error msg from random.randint

2010-08-24 Thread Mark Lawrence
Changes by Mark Lawrence : -- stage: unit test needed -> patch review versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ _

[issue1560032] confusing error msg from random.randint

2010-07-24 Thread Petras Zdanavičius
Petras Zdanavičius 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 think it is

[issue1560032] confusing error msg from random.randint

2009-04-21 Thread Daniel Diniz
Daniel Diniz added the comment: Don't worry :) Tagging as a Bug Day candidate. -- keywords: +easy ___ Python tracker ___ ___ Pytho

[issue1560032] confusing error msg from random.randint

2009-03-30 Thread paul rubin
paul rubin 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 include a patch later (I c

[issue1560032] confusing error msg from random.randint

2009-03-29 Thread Daniel Diniz
Daniel Diniz 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 im

[issue1560032] confusing error msg from random.randint

2009-03-29 Thread paul rubin
paul rubin 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. Closing bugs like this is demor

[issue1560032] confusing error msg from random.randint

2009-03-29 Thread Daniel Diniz
Daniel Diniz 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