[Snek] [keith-packard/snek] c2c7ef: Allow for builtin function aliases, alias 'pow' fo...
Keith Packard
noreply at github.com
Sun Sep 4 15:53:28 PDT 2022
Branch: refs/heads/main
Home: https://github.com/keith-packard/snek
Commit: c2c7efe8366d6816bcb8a90d5fe93af4924f5344
https://github.com/keith-packard/snek/commit/c2c7efe8366d6816bcb8a90d5fe93af4924f5344
Author: Keith Packard <keithp at keithp.com>
Date: 2022-05-14 (Sat, 14 May 2022)
Changed paths:
M snek-builtin.py
M snek-math.builtin
Log Message:
-----------
Allow for builtin function aliases, alias 'pow' for math.pow
Python has a builtin 'pow' function, which performs the math.pow when
presented with two arguments (it does powmod with three). We can at least
make the two argument form work by having it be an alias for the existing
math.pow function on systems that include the math library.
Signed-off-by: Keith Packard <keithp at keithp.com>
More information about the Snek
mailing list