[issue30561] sync-up gammavariate and expovariate code

2017-06-03 Thread Leonardo De Marchi
Changes by Leonardo De Marchi : -- pull_requests: +2014 ___ Python tracker <http://bugs.python.org/issue30561> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30464] gammavariate has a wrong comment

2017-06-03 Thread Leonardo De Marchi
Changes by Leonardo De Marchi : -- pull_requests: +2012 ___ Python tracker <http://bugs.python.org/issue30464> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30561] sync-up gammavariate and expovariate code

2017-06-03 Thread Leonardo De Marchi
Changes by Leonardo De Marchi : -- pull_requests: +2011 ___ Python tracker <http://bugs.python.org/issue30561> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30561] sync-up gammavariate and expovariate code

2017-06-03 Thread Leonardo De Marchi
New submission from Leonardo De Marchi: As suggested by rhettinger in http://bugs.python.org/msg294438: I agree that the comment should be changed. While we at it, perhaps sync-up with expovariate() code and eliminate the ``u <= 1e-7`` test: Instead of: elif alpha ==

[issue30464] gammavariate has a wrong comment

2017-05-25 Thread Leonardo De Marchi
Changes by Leonardo De Marchi : -- pull_requests: +1896 ___ Python tracker <http://bugs.python.org/issue30464> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30464] gammavariate has a wrong comment

2017-05-24 Thread Leonardo De Marchi
New submission from Leonardo De Marchi: The gammavariate function in random.py has a wrong comment. It says that when alpha is one it's equivalent to call expovariate(1). We can see that is not true (see graphs) and it should be expovariate(1/beta). It's not a big deal but it