[Snek] [keith-packard/snek] bc46d4: Add pi example
Keith Packard
noreply at github.com
Thu Nov 21 01:03:28 PST 2024
Branch: refs/heads/from-import
Home: https://github.com/keith-packard/snek
Commit: bc46d402d874109db8c33303bc62137517473dd3
https://github.com/keith-packard/snek/commit/bc46d402d874109db8c33303bc62137517473dd3
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-21 (Thu, 21 Nov 2024)
Changed paths:
A examples/pi.py
Log Message:
-----------
Add pi example
This computes pi with random numbers
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: 38c42d88eba045304d19586d33e378b33fafa569
https://github.com/keith-packard/snek/commit/38c42d88eba045304d19586d33e378b33fafa569
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-21 (Thu, 21 Nov 2024)
Changed paths:
M ports/duemilanove/Makefile
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. Use '--alias' to also leave the names
in their original namespace for compatibility with existing code.
By default, the math, time and random namespaces aliased.
Signed-off-by: Keith Packard <keithp at keithp.com>
Commit: b8ff4188c5dadddc177b22a6e01968fd7600f095
https://github.com/keith-packard/snek/commit/b8ff4188c5dadddc177b22a6e01968fd7600f095
Author: Keith Packard <keithp at keithp.com>
Date: 2024-11-21 (Thu, 21 Nov 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/85108d7bcfe9...b8ff4188c5da
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