[Snek] [keith-packard/snek] c2c7ef: Allow for builtin function aliases, alias 'pow' fo...

Keith Packard noreply at github.com
Sun Sep 4 15:53:04 PDT 2022


  Branch: refs/heads/build-reqs
  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>


  Commit: 560166e22ef0d3ab0390c3a25b93db4c6130be3d
      https://github.com/keith-packard/snek/commit/560166e22ef0d3ab0390c3a25b93db4c6130be3d
  Author: Keith Packard <keithp at keithp.com>
  Date:   2022-09-04 (Sun, 04 Sep 2022)

  Changed paths:
    M README.md

  Log Message:
  -----------
  Add some more details about build requirements in README.md

Note that a current version of lola and the GNU awk version (gawk) are
required to build Snek.

Signed-off-by: Keith Packard <keithp at keithp.com>


Compare: https://github.com/keith-packard/snek/compare/c2c7efe8366d%5E...560166e22ef0


More information about the Snek mailing list