]> granicus.if.org Git - python/commit
Finished backporting PEP 3127, Integer Literal Support and Syntax.
authorEric Smith <eric@trueblade.com>
Mon, 17 Mar 2008 17:32:20 +0000 (17:32 +0000)
committerEric Smith <eric@trueblade.com>
Mon, 17 Mar 2008 17:32:20 +0000 (17:32 +0000)
commit9ff19b54346d39d15cdcf75e9d66ab46ea6064d6
treee4a83605262567c9c9abff7a7afa3edc1bd61681
parent7cfbf0c421137dfac5d9d2e4c879302ba5f80d88
Finished backporting PEP 3127, Integer Literal Support and Syntax.

Added 0b and 0o literals to tokenizer.
Modified PyOS_strtoul to support 0b and 0o inputs.
Modified PyLong_FromString to support guessing 0b and 0o inputs.
Renamed test_hexoct.py to test_int_literal.py and added binary tests.
Added upper and lower case 0b, 0O, and 0X tests to test_int_literal.py
Lib/test/test_builtin.py
Lib/test/test_compile.py
Lib/test/test_hexoct.py [deleted file]
Lib/test/test_int_literal.py [new file with mode: 0644]
Objects/longobject.c
Parser/tokenizer.c
Python/mystrtoul.c