summaryrefslogtreecommitdiff
path: root/py/parsenum.c
AgeCommit message (Expand)Author
6 dayspy/formatfloat: Improve accuracy of float formatting code.Yoctopuce dev
6 dayspy/parsenum: Refactor float parsing code.Yoctopuce dev
2025-07-18py/parsenum: Extend mp_parse_num_integer() to parse long long.Angus Gratton
2025-07-18py/smallint: Update mp_small_int_mul_overflow() to perform the multiply.Angus Gratton
2025-06-10py/parsenum: Fix parsing complex literals with negative real part.Jeff Epler
2025-06-10py/parsenum: Further reduce code size in check for inf/nan.Jeff Epler
2025-06-10py/parsenum: Reduce code size in check for inf/nan.Jeff Epler
2025-05-13all: Rename the "NORETURN" macro to "MP_NORETURN".Alessandro Gatti
2025-02-28py/parsenum: Reduce code footprint of mp_parse_num_float.Yoctopuce dev
2025-01-26py/parsenum: Throw an exception for invalid int literals like "01".Jeff Epler
2024-03-07all: Remove the "STATIC" macro and just use "static" instead.Angus Gratton
2023-06-14py/parsenum: Fix typo in #endif comment.David Lechner
2022-08-26py/objstr: Optimise mp_obj_new_str_from_vstr for known-safe strings.Jim Mussared
2022-08-26py/objstr: Split mp_obj_str_from_vstr into bytes/str versions.Jim Mussared
2022-08-12py/parsenum: Ensure that trailing zeros lead to identical results.Dan Ellis
2022-06-23py/parsenum: Optimise when building with complex disabled.Damien George
2022-06-23py/parsenum: Fix parsing of complex "j" and also "nanj", "infj".Damien George
2022-06-23py/parsenum: Support parsing complex numbers of the form "a+bj".Jim Mussared
2021-04-27py: Add option to compile without any error messages at all.Damien George
2020-04-18all: Fix implicit floating point promotion.stijn
2020-04-18Revert "all: Fix implicit casts of float/double, and signed comparison."stijn
2020-04-05all: Use MP_ERROR_TEXT for all error messages.Jim Mussared
2020-04-05py: Use preprocessor to detect error reporting level (terse/detailed).Jim Mussared
2020-03-30all: Fix implicit casts of float/double, and signed comparison.David Lechner
2020-02-28all: Reformat C and Python source code with tools/codeformat.py.Damien George
2019-09-26py: Rename MP_QSTR_NULL to MP_QSTRnull to avoid intern collisions.Josh Lloyd
2018-09-20py/parsenum: Avoid rounding errors with negative powers-of-10.Romain Goyet
2018-06-12py/lexer: Add support for underscores in numeric literals.Damien George
2018-05-22py/parsenum: Adjust braces so they are balanced.Damien George
2018-05-21py/parsenum: Avoid undefined behavior parsing floats with large exponents.Jeff Epler
2018-05-21py/parsenum: Use int instead of mp_int_t for parsing float exponent.Damien George
2018-02-08py/parsenum: Fix parsing of floats that are close to subnormal.Damien George
2017-11-27py/parsenum: Improve parsing of floating point numbers.Damien George
2017-07-31all: Use the name MicroPython consistently in commentsAlexander Steffen
2017-03-28py: Use mp_raise_TypeError/mp_raise_ValueError helpers where possible.Damien George
2016-12-28py/parsenum: Fix warning for signed/unsigned comparison.Damien George
2016-12-28py/parsenum: Simplify and generalise decoding of digit values.Damien George
2016-11-03py: Add MICROPY_FLOAT_CONST macro for defining float constants.Damien George
2016-10-17py: Use mp_raise_msg helper function where appropriate.Damien George
2016-03-29py/parsenum: Use pow function to apply exponent to decimal number.Damien George
2016-03-14py/parsenum: Fix compiler warnings for no decl and signed comparison.Damien George
2016-03-14py/parsenum: Use size_t to count bytes, and int for type of base arg.Damien George
2015-11-29py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR.Damien George
2015-10-01py/parsenum: Provide detailed error for int parsing with escaped bytes.Damien George
2015-06-23py: Clarify comment in parsenum.c about ValueError vs SyntaxError.Damien George
2015-06-23py: Change exception type to ValueError when error reporting is terse.Daniel Campora
2015-05-30py/parsenum.c: Rename "raise" func to "raise_exc" to avoid name clash.Damien George
2015-03-16py: Fix printing of error message when parsing malformed integer.Damien George
2015-02-08py: Parse big-int/float/imag constants directly in parser.Damien George
2015-01-01py: Move to guarded includes, everywhere in py/ core.Damien George