Message366496
| 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:31 | veky | set | recipients:
+ veky, rhettinger, mark.dickinson, vstinner |
| 2020年04月15日 08:36:31 | veky | set | messageid: <1586939791.53.0.375236441067.issue40286@roundup.psfhosted.org> |
| 2020年04月15日 08:36:31 | veky | link | issue40286 messages |
| 2020年04月15日 08:36:31 | veky | create |
|