Closed Duncanr-glitch closed 1 month ago
All of that should be done I think :) Thanks for the feedback!
python3 only
(Apologies for the long delay here!)
Yes, I am happy with a change that doesn't break existing python 2 code but does accidentally expose some python 3 features in py2 mode (this is a choice we make with the stdlib all the time, and tbh even Anvil will probably want to start deprecating our py2 support soon)
Fixes #1188
Copied the choices method from cpyhon's random module and then put it into a new random.py file that calls all the random.js functions renamed as _random.js.
Only works in python3