[Snek] [keith-packard/snek] 3ce957: Add math, random and time names to global namespac...
Keith Packard
noreply at github.com
Sun Oct 27 17:17:29 PDT 2024
Branch: refs/heads/from-import
Home: https://github.com/keith-packard/snek
Commit: 3ce9578c578b5835e8b9fe4332a2ccc26d751326
https://github.com/keith-packard/snek/commit/3ce9578c578b5835e8b9fe4332a2ccc26d751326
Author: Keith Packard <keithp at keithp.com>
Date: 2024-10-27 (Sun, 27 Oct 2024)
Changed paths:
M snek-builtin.py
M snek.defs
M test/pass-math.py
M test/pass-op.py
M test/pass-random.py
M test/pass-trailing-comma.py
Log Message:
-----------
Add math, random and time names to global namespace (by default)
Add '--global' parameters to snek-builtin.py to match namespaces from
builtin function names, removing those namespaces so that the names
appear in the global namespace.
By default, the math, time and random namespaces are removed.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 379892322375906f363728a7bce96bdf7b8ec0ac
https://github.com/keith-packard/snek/commit/379892322375906f363728a7bce96bdf7b8ec0ac
Author: Keith Packard <keithp at keithp.com>
Date: 2024-10-27 (Sun, 27 Oct 2024)
Changed paths:
M README.md
M doc/lessons/lesson-1/lesson-1-snekboard.adoc
M doc/lessons/lesson-2/lesson-2-line-bug.adoc
M doc/lessons/lesson-3/bumper-car.py
M doc/lessons/lesson-3/lesson-3-bumper-car.adoc
M doc/snek.adoc
M examples/badshuffle.py
M examples/blink.py
M examples/goodshuffle.py
M examples/hanoi.py
M examples/morse.py
M examples/neopixel.py
M examples/neopixels.py
M examples/servo-car.py
M examples/snek-bsd.py
M examples/snek-car.py
M examples/snek.py
M ports/snekboard/snek-board-test.py
Log Message:
-----------
Update examples and docs to reflect removal of namespaces
Fix all of the code to remove math., time. and random.
Signed-off-by: Keith Packard <keithp at keithp.com>
Compare: https://github.com/keith-packard/snek/compare/94705b572267...379892322375
To unsubscribe from these emails, change your notification settings at https://github.com/keith-packard/snek/settings/notifications
More information about the Snek
mailing list