Vedran Čačić <ved...@gmail.com> added the comment:

> 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.)

----------
nosy: +veky

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40286>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to