[Snek] [keith-packard/snek] 026873: Add PEP 515 Underscore in Numeric Literals

Paulo Henrique Silva noreply at github.com
Thu Nov 14 14:31:59 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/keith-packard/snek
  Commit: 0268735dc1a27c7ce14c7e74eeadf8ce773ee765
      https://github.com/keith-packard/snek/commit/0268735dc1a27c7ce14c7e74eeadf8ce773ee765
  Author: Paulo Henrique Silva <ph.silva at carta.com>
  Date:   2019-11-13 (Wed, 13 Nov 2019)

  Changed paths:
    M snek-lex.c

  Log Message:
  -----------
  Add PEP 515 Underscore in Numeric Literals

This PR adds PEP 515 support. PEP 515 allows use of '_'
as numeric separator in integer, so you can write
10_000 instead of 10000, which is somewhat more readable.


  Commit: e1c4959f607c362ca2e8be8d31d18ccc2be3b21a
      https://github.com/keith-packard/snek/commit/e1c4959f607c362ca2e8be8d31d18ccc2be3b21a
  Author: Paulo Henrique Silva <ph.silva at carta.com>
  Date:   2019-11-14 (Thu, 14 Nov 2019)

  Changed paths:
    M doc/snek.adoc

  Log Message:
  -----------
  Add documentation about PEP-515 support


  Commit: 1e39393b08a353868c7e95d4c1ba62f282086842
      https://github.com/keith-packard/snek/commit/1e39393b08a353868c7e95d4c1ba62f282086842
  Author: Paulo Henrique Silva <ph.silva at carta.com>
  Date:   2019-11-14 (Thu, 14 Nov 2019)

  Changed paths:
    M test/Makefile
    A test/int.py

  Log Message:
  -----------
  Add tests for PEP-515 support.

Tests currently run on generic `python3`. This requires
at least python3.6 to run.


Compare: https://github.com/keith-packard/snek/compare/3d706e95f685...1e39393b08a3


More information about the Snek mailing list