Message320080
Thanks for the suggestion. You are right about *x*, *n*, or *a* being the best possible parameter name. That said, it doesn't seem to have ever caused a problem in practice (this API has been around for a very long time), so I'm reluctant to create any disruption (breaking existing code) with a deprecation for something with so little benefit (this docstrings are very clear about what the parameter means). There is also the matter of possible confusion with the seed() method which uses the *a* or the internal _randommodule.c that uses *n* but doesn't allow keyword arguments).
I think the lesson here is that parameter names should be carefully considered when a new API is created rather than decades after its release into the wild. |
|
Date |
User |
Action |
Args |
2018-06-20 14:37:38 | rhettinger | set | recipients:
+ rhettinger, mbussonn |
2018-06-20 14:37:38 | rhettinger | set | messageid: <1529505458.0.0.56676864532.issue33910@psf.upfronthosting.co.za> |
2018-06-20 14:37:37 | rhettinger | link | issue33910 messages |
2018-06-20 14:37:37 | rhettinger | create | |
|