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 corona10
Recipients corona10, mark.dickinson, rhettinger, serhiy.storchaka, steven.daprano
Date 2021-06-12.13:13:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1623503589.44.0.24858905701.issue44400@roundup.psfhosted.org>
In-reply-to
Content
To explain my thought,

> Not every one line expression needs to be a function in a library. `bool(getrandbits(1))` is self-explanatory enough,

Yeah, I agree with the point of view, it might be enough.

But considering the popularity of the Python language and there is a lot of new people who enter the programming world with Python for their own purpose so there are a lot of people who are not familiar with the concept of bits.
So I thought that the random module can become more friendly for those people.

And for example, Java/Scala already provides those high-level APIs (and there is a similar proposal at Go also: https://github.com/golang/go/issues/23804). but it does not mean that Python should provide the same APIs. And I know that we also have to consider the maintenance cost and the principle of library scope.

Anyway, this is the reason I proposed this feature and I want to hear the opinion from other core-devs :)

please let me know if I miss something or historical issue.
Enjoy your weekend.
History
Date User Action Args
2021-06-12 13:13:09corona10setrecipients: + corona10, rhettinger, mark.dickinson, steven.daprano, serhiy.storchaka
2021-06-12 13:13:09corona10setmessageid: <1623503589.44.0.24858905701.issue44400@roundup.psfhosted.org>
2021-06-12 13:13:09corona10linkissue44400 messages
2021-06-12 13:13:09corona10create