circuitpython/py
Jeff Epler d808effab0 py/parsenum: Fix parsing complex literals with negative real part.
If a complex literal had a negative real part and a positive imaginary
part, it was not parsed properly because the imaginary part also came out
negative.

Includes a test of complex parsing, which fails without this fix.

Co-authored-by: ComplexSymbol <141301057+ComplexSymbol@users.noreply.github.com>
Signed-off-by: Jeff Epler <jepler@gmail.com>
2025-07-08 13:44:39 -04:00
..
argcheck.c MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
asmarm.c py/asmarm: Fix halfword loads with larger offsets. 2025-01-16 12:52:32 +11:00
asmarm.h (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
asmbase.c py/emitndebug: Add native debug emitter. 2024-06-21 16:21:27 +10:00
asmbase.h py/asmrv32: Add RISC-V RV32IMC native code emitter. 2024-06-21 15:06:07 +10:00
asmrv32.c py/emitinlinerv32: Add inline assembler support for RV32. 2025-01-02 11:49:10 +11:00
asmrv32.h py/emitnative: Emit shorter exception handler entry code on RV32. 2025-01-26 23:42:36 +11:00
asmthumb.c py/misc: Move mp_clz and mp_ctz intrinsics into misc.h. 2024-06-24 14:06:54 +10:00
asmthumb.h (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
asmx64.c py/asm: Add ASM_NOT_REG and ASM_NEG_REG macros for unary ops. 2024-03-19 10:31:36 +11:00
asmx64.h (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
asmx86.c py/asm: Add ASM_NOT_REG and ASM_NEG_REG macros for unary ops. 2024-03-19 10:31:36 +11:00
asmx86.h (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
asmxtensa.c py/asmxtensa: Optimise asm_xtensa_mov_reg_i32_optimised() for tiny ints. 2024-03-19 10:31:36 +11:00
asmxtensa.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
bc.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
bc.h Apply suggestions from code review 2025-04-24 12:29:57 -07:00
bc0.h
binary.c wip: fix some tests 2025-06-11 22:53:06 -04:00
binary.h
builtin.h extmod/modmachine: Use sys.exit as implementation of machine.soft_reset. 2024-07-20 12:18:07 +10:00
builtinevex.c py/objcode: Factor code object out into its own file. 2025-02-11 16:42:14 +11:00
builtinhelp.c change remaining STATIC to static 2024-09-03 17:40:07 -04:00
builtinimport.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
circuitpy_defns.mk Requested fixes to exceptions, docs, config 2025-06-09 18:13:08 -04:00
circuitpy_mkenv.mk
circuitpy_mpconfig.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
circuitpy_mpconfig.mk Merge remote-tracking branch 'upstream/main' into esp-microros 2025-06-11 12:52:38 -04:00
compile.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
compile.h py/objcode: Factor code object out into its own file. 2025-02-11 16:42:14 +11:00
cstack.c py: Add new cstack API for stack checking, with limit margin macro. 2024-08-14 12:55:45 +10:00
cstack.h py: Add new cstack API for stack checking, with limit margin macro. 2024-08-14 12:55:45 +10:00
dynruntime.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
dynruntime.mk tools/mpy_ld.py: Allow linking static libraries. 2025-03-17 13:03:27 +11:00
emit.h py/emitinlinerv32: Add inline assembler support for RV32. 2025-01-02 11:49:10 +11:00
emitbc.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
emitcommon.c
emitglue.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
emitglue.h fix raw_code is_generator and is_async 2024-09-13 11:35:17 -04:00
emitinlinerv32.c py/emitinlinerv32: Move include of asmrv32.h to within feature guard. 2025-04-14 11:13:19 +10:00
emitinlinethumb.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
emitinlinextensa.c py/emitinlinextensa: Simplify register name lookup. 2025-02-28 13:21:44 +11:00
emitnarm.c
emitnative.c micropython v1.25.0 merge: fix tests, fix typos, fix includes 2025-06-21 11:25:07 -04:00
emitndebug.c py/emitndebug: Add native debug emitter. 2024-06-21 16:21:27 +10:00
emitnrv32.c py/asmrv32: Add RISC-V RV32IMC native code emitter. 2024-06-21 15:06:07 +10:00
emitnthumb.c
emitnx64.c
emitnx86.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
emitnxtensa.c
emitnxtensawin.c
enum.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
enum.h CircuitPython files: replace STATIC with static 2024-05-20 11:02:17 -04:00
formatfloat.c address review comments 2024-08-21 16:50:19 -04:00
formatfloat.h
frozenmod.c
frozenmod.h
gc.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
gc.h Apply suggestions from code review 2025-04-24 12:29:57 -07:00
grammar.h
lexer.c Make collect the default 2025-04-24 14:59:07 -07:00
lexer.h py/lexer: Add static assert that token enum values all fit in a byte. 2024-07-18 12:44:44 +10:00
make_root_pointers.py
makecompresseddata.py
makemoduledefs.py
makeqstrdata.py MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
makeqstrdefs.py Add Zephyr port 2025-02-04 11:24:13 -08:00
maketranslationdata.py Switch to ruff like MicroPython 2025-02-05 11:09:15 -08:00
makeversionhdr.py Update py/makeversionhdr.py 2025-05-15 09:46:02 -04:00
malloc.c Fix finaliser in malloc helper 2025-05-02 22:49:12 -07:00
map.c Make collect the default 2025-04-24 14:59:07 -07:00
misc.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
mkenv.mk esp32: Pass V=1 or BUILD_VERBOSE through to idf.py when building. 2024-12-10 11:28:38 +11:00
mkrules.cmake rp2,esp32,extmod: Implement UPDATE_SUBMODULES in CMake. 2025-03-27 17:51:12 +11:00
mkrules.mk MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
modarray.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
modbuiltins.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
modcmath.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
modcollections.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
moderrno.c Add errno.EROFS and errno.ENOSPC 2024-10-18 16:36:22 -04:00
modgc.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
modio.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
modmath.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
modmicropython.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
modstruct.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
modsys.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
modthread.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
mpconfig.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
mperrno.h MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
mphal.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
mpprint.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
mpprint.h MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
mpstate.c MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
mpstate.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
mpthread.h py: Add optional support for recursive mutexes, use for gc mutex. 2025-02-03 15:02:02 +11:00
mpz.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
mpz.h wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
nativeglue.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
nativeglue.h fix compilation issues; remove more uctypes mentions 2024-09-10 16:04:47 -04:00
nlr.c wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
nlr.h wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
nlraarch64.c wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
nlrmips.c wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
nlrpowerpc.c wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
nlrrv32.c py/nlrrv32: Add RISC-V RV32I NLR implementation. 2024-06-06 11:56:58 +10:00
nlrrv64.c py/nlrrv64: Add RISC-V RV64I NLR implementation. 2024-10-03 12:06:19 +10:00
nlrsetjmp.c
nlrthumb.c wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
nlrx64.c wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
nlrx86.c wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
nlrxtensa.c wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
obj.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
obj.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
objarray.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
objarray.h py/objarray: Add MP_DEFINE_MEMORYVIEW_OBJ convenience macro. 2025-03-06 12:52:35 +11:00
objattrtuple.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
objbool.c Throw TypeError when json-serializing invalid types 2024-11-04 09:16:44 -06:00
objboundmeth.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
objcell.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
objclosure.c Make collect the default 2025-04-24 14:59:07 -07:00
objcode.c py/objcode: Factor code object out into its own file. 2025-02-11 16:42:14 +11:00
objcode.h py/objcode: Factor code object out into its own file. 2025-02-11 16:42:14 +11:00
objcomplex.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
objdeque.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
objdict.c Add selective collect to memory allocations 2025-04-22 14:07:00 -07:00
objenumerate.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
objexcept.c Remove old traceback type 2025-05-12 14:47:37 -07:00
objexcept.h MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
objfilter.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
objfloat.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
objfun.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
objfun.h py/objfun.h: prevent cast-align warnings 2024-09-14 12:48:49 -04:00
objgenerator.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
objgenerator.h
objgetitemiter.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
objint.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
objint.h wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
objint_longlong.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
objint_mpz.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
objlist.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
objlist.h MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
objmap.c Add selective collect to memory allocations 2025-04-22 14:07:00 -07:00
objmodule.c Add selective collect to memory allocations 2025-04-22 14:07:00 -07:00
objmodule.h
objnamedtuple.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
objnamedtuple.h MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
objnone.c Throw TypeError when json-serializing invalid types 2024-11-04 09:16:44 -06:00
objobject.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
objpolyiter.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
objproperty.c Add selective collect to memory allocations 2025-04-22 14:07:00 -07:00
objproperty.h non-conflict merge changes 2024-09-05 14:54:18 -04:00
objrange.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
objreversed.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
objringio.c py/objringio: Add micropython.RingIO() interface for general use. 2024-09-19 18:00:44 +10:00
objset.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
objsingleton.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
objslice.c change remaining STATIC to static 2024-09-03 17:40:07 -04:00
objstr.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
objstr.h (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
objstringio.c change remaining STATIC to static 2024-09-03 17:40:07 -04:00
objstringio.h
objstrunicode.c Throw TypeError when json-serializing invalid types 2024-11-04 09:16:44 -06:00
objtraceback.c non-conflict merge changes 2024-09-05 14:54:18 -04:00
objtraceback.h non-conflict merge changes 2024-09-05 14:54:18 -04:00
objtuple.c Make collect the default 2025-04-24 14:59:07 -07:00
objtuple.h MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
objtype.c wip: ports compile and pass smoke tests 2025-06-10 21:53:41 -04:00
objtype.h change CIRCUITPY change markers to CIRCUITPY-CHANGE 2023-10-19 16:42:36 -04:00
objzip.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
opmethods.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
pairheap.c
pairheap.h
parse.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
parse.h
parsenum.c py/parsenum: Fix parsing complex literals with negative real part. 2025-07-08 13:44:39 -04:00
parsenum.h
parsenumbase.c py/parsenumbase: Favor clarity of code over manual optimisation. 2025-01-29 12:39:05 +11:00
parsenumbase.h
persistentcode.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
persistentcode.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
profile.c py/objcode: Factor code object out into its own file. 2025-02-11 16:42:14 +11:00
profile.h py/objcode: Factor code object out into its own file. 2025-02-11 16:42:14 +11:00
proto.c update headers of most CircuitPython-only files 2024-05-17 14:56:28 -04:00
proto.h guard2once -s ... 2024-05-19 20:40:44 -04:00
py.cmake MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
py.mk MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
pystack.c MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
pystack.h Make collect the default 2025-04-24 14:59:07 -07:00
qstr.c MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
qstr.h MicroPython v1.25.0 merge 2025-06-20 14:26:24 -04:00
qstrdefs.h extmod/vfs: Add mp_vfs_mount_romfs_protected() helper. 2025-03-06 12:52:35 +11:00
reader.c py/reader: Provide mp_reader_try_read_rom() function. 2024-12-23 13:04:54 +11:00
reader.h all: Upgrade codespell to v2.4.1. 2025-02-25 16:11:33 +11:00
repl.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
repl.h
ringbuf.c py/objringio: Add micropython.RingIO() interface for general use. 2024-09-19 18:00:44 +10:00
ringbuf.h py/objringio: Add micropython.RingIO() interface for general use. 2024-09-19 18:00:44 +10:00
runtime.c Merge remote-tracking branch 'adafruit/main' into merge-micropython-v1.25.0 2025-06-20 17:25:01 -04:00
runtime.h wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
runtime0.h restore async scope flag to previous bit position 2024-09-12 18:06:17 -04:00
runtime_utils.c MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
scheduler.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
scope.c Make collect the default 2025-04-24 14:59:07 -07:00
scope.h py/emitglue: Include fun_data_len in mp_raw_code_t only when saving. 2024-02-16 14:17:01 +11:00
sequence.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
showbc.c py/emitglue: Include fun_data_len in mp_raw_code_t only when saving. 2024-02-16 14:17:01 +11:00
smallint.c
smallint.h
stackctrl.c wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
stackctrl.h wip: initial merge; no compilation yet 2025-06-08 19:23:05 -04:00
stream.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
stream.h (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
unicode.c all: Remove the "STATIC" macro and just use "static" instead. 2024-03-07 14:20:42 +11:00
unicode.h
usermod.cmake py/usermod.cmake: If USER_C_MODULES is a folder add micropython.cmake. 2024-11-20 17:38:39 +11:00
verbose.mk esp32: Pass V=1 or BUILD_VERBOSE through to idf.py when building. 2024-12-10 11:28:38 +11:00
version.py Fix version determination for 10.x 2025-04-01 14:35:38 -07:00
vm.c change remaining STATIC to static 2024-09-03 17:40:07 -04:00
vmentrytable.h MPy v1.22 merge: initial merge; not compiled yet 2024-07-25 15:16:24 -04:00
vstr.c (only) reserve merge conflicts 2024-08-28 16:31:37 -04:00
warning.c