circuitpython/bare-arm
Damien George 06593fb0f2 py: Use a wrapper to explicitly check self argument of builtin methods.
Previous to this patch a call such as list.append(1, 2) would lead to a
seg fault.  This is because list.append is a builtin method and the first
argument to such methods is always assumed to have the correct type.

Now, when a builtin method is extracted like this it is wrapped in a
checker object which checks the the type of the first argument before
calling the builtin function.

This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and
is enabled by default.

See issue #1216.
2015-06-20 16:39:39 +01:00
..
Makefile bare-arm: Prefix includes with py/; remove need for -I../py. 2015-01-01 21:14:42 +00:00
main.c py: Overhaul and simplify printf/pfenv mechanism. 2015-04-16 14:30:16 +00:00
mpconfigport.h py: Use a wrapper to explicitly check self argument of builtin methods. 2015-06-20 16:39:39 +01:00
qstrdefsport.h Add 'bare-arm' port: the bare minimum to get it running on an ARM MCU. 2014-04-12 13:07:45 +01:00
stm32f405.ld Add 'bare-arm' port: the bare minimum to get it running on an ARM MCU. 2014-04-12 13:07:45 +01:00