- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | leodema |
|---|---|
| Recipients | leodema |
| Date | 2017-06-03.20:16:30 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1496520990.41.0.958054362061.issue30561@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
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 == 1.0: # expovariate(1) u = random() while u <= 1e-7: u = random() return -_log(u) * beta Use this instead: elif alpha == 1.0: # expovariate(1.0 / beta) return -_log(1.0 - random()) * beta |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-06-03 20:16:30 | leodema | set | recipients: + leodema |
| 2017-06-03 20:16:30 | leodema | set | messageid: <1496520990.41.0.958054362061.issue30561@psf.upfronthosting.co.za> |
| 2017-06-03 20:16:30 | leodema | link | issue30561 messages |
| 2017-06-03 20:16:30 | leodema | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
