Andrew Scheller
f78cfaf8b5
Remove exception name from inside the exception message
This prevents micropython printing exception messages like
ImportError: ImportError: No module named 'foo'
11 years ago
Damien George
ea13f407a3
py: Change nlr_jump to nlr_raise, to aid in debugging.
This does not affect code size or performance when debugging turned off.
To address issue #420 .
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.
Remove unnecessary includes. Add includes that improve portability.
11 years ago
Damien George
06201ff3d6
py: Implement bit-shift and not operations for mpz.
Implement not, shl and shr in mpz library. Add function to create mpzs
on the stack, used for memory efficiency when rhs is a small int.
Factor out code to parse base-prefix of number into a dedicated function.
11 years ago
Damien George
2077397118
py: Put number parsing code together in parsenum.c.
11 years ago