30 Commits (3545ef8bb49d9ad02e85bd13f478072f8059c582)

Author SHA1 Message Date
Damien George 2599672384 py/parsenum: Use pow function to apply exponent to decimal number. 9 years ago
Damien George 06b398489e py/parsenum: Fix compiler warnings for no decl and signed comparison. 9 years ago
Damien George dddb98db8b py/parsenum: Use size_t to count bytes, and int for type of base arg. 9 years ago
Damien George 999cedb90f py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. 9 years ago
Damien George 5f3c3ec5e6 py/parsenum: Provide detailed error for int parsing with escaped bytes. 9 years ago
Damien George 2a1090a637 py: Clarify comment in parsenum.c about ValueError vs SyntaxError. 10 years ago
Daniel Campora 228c68a9cd py: Change exception type to ValueError when error reporting is terse. 10 years ago
Damien George 0ec8cf8e80 py/parsenum.c: Rename "raise" func to "raise_exc" to avoid name clash. 10 years ago
Damien George d4bd37a561 py: Fix printing of error message when parsing malformed integer. 10 years ago
Damien George 7d414a1b52 py: Parse big-int/float/imag constants directly in parser. 10 years ago
Damien George 51dfcb4bb7 py: Move to guarded includes, everywhere in py/ core. 10 years ago
Damien George 1e9a92f84f py: Use shorter, static error msgs when ERROR_REPORTING_TERSE enabled. 10 years ago
Damien George 381618269a parser: Convert (u)int to mp_(u)int_t. 11 years ago
Damien George 40f3c02682 Rename machine_(u)int_t to mp_(u)int_t. 11 years ago
Paul Sokolovsky 59c675a64c py: Include mpconfig.h before all other includes. 11 years ago
Paul Sokolovsky 3b6f7b95eb py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT. 11 years ago
Paul Sokolovsky 0294661da5 parsenum: Signedness issues. 11 years ago
Damien George fb510b3bf9 Rename bultins config variables to MICROPY_PY_BUILTINS_*. 11 years ago
Damien George d1e355ea8e py: Fix check of small-int overflow when parsing ints. 11 years ago
Damien George 503d611033 py: Implement long int parsing in int(...). 11 years ago
Damien George 04b9147e15 Add license header to (almost) all files. 11 years ago
Andrew Scheller f78cfaf8b5 Remove exception name from inside the exception message 11 years ago
Damien George ea13f407a3 py: Change nlr_jump to nlr_raise, to aid in debugging. 11 years ago
Damien George 7b4b78bc33 py: Put back proper ValueError for badly parsed integers. 11 years ago
Damien George dfbafabf6f py: Improve mp_parse_num_integer; make it self contained. 11 years ago
Damien George 6e48f7fa85 py: Allow 'complex()' to take a string as first argument. 11 years ago
Damien George c06ea7abf2 py: Implement parsing of infinity and nan for floats. 11 years ago
xbe efe3422394 py: Clean up includes. 11 years ago
Damien George 06201ff3d6 py: Implement bit-shift and not operations for mpz. 11 years ago
Damien George 2077397118 py: Put number parsing code together in parsenum.c. 11 years ago