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 veky
Recipients mark.dickinson, rhettinger, veky, vstinner
Date 2020-04-15.08:36:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586939791.53.0.375236441067.issue40286@roundup.psfhosted.org>
In-reply-to
Content
> I suggest just random.bytes(n), the same as numpy.

The problem with this is that people who `from random import *` (some schools insist on this, probably because most functions they need already start with `rand`) will shadow builtin `bytes`. Not that those schools do anything with `bytes`, but still, it might be inconvenient.

(The metaproblem is of course that some functions already do the "poor man's namespacing" in C-style by starting with `rand`, and some don't. I'm always for user control of namespacing, but I'm just saying that it doesn't correspond to how many beginners use `random` module.)
History
Date User Action Args
2020-04-15 08:36:31vekysetrecipients: + veky, rhettinger, mark.dickinson, vstinner
2020-04-15 08:36:31vekysetmessageid: <1586939791.53.0.375236441067.issue40286@roundup.psfhosted.org>
2020-04-15 08:36:31vekylinkissue40286 messages
2020-04-15 08:36:31vekycreate