circuitpython/unix
Damien George 78d702c300 py: Allow builtins to be overridden.
This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
which, when enabled, allows to override all names within the builtins
module.  A builtins override dict is created the first time the user
assigns to a name in the builtins model, and then that dict is searched
first on subsequent lookups.  Note that this implementation doesn't
allow deleting of names.

This patch also does some refactoring of builtins code, creating the
modbuiltins.c file.

Addresses issue #959.
2014-12-09 16:19:48 +00:00
..
.gitignore Revamp qstrs: they now include length and hash. 2014-01-21 21:40:13 +00:00
alloc.c Code style/whitespace cleanup; remove obsolete headers. 2014-09-03 22:47:23 +01:00
file.c py: Make stream seek correctly check for ioctl fn; add seek for textio. 2014-11-16 23:56:37 +00:00
gccollect.c py: Make gc.enable/disable just control auto-GC; alloc is still allowed. 2014-10-31 21:30:46 +00:00
input.c unix: Remove unused CTRL-D definition 2014-06-25 13:33:10 +02:00
input.h Add input command for unix 2014-05-07 07:19:51 -07:00
main.c modsys: Add sys.print_exception(exc, file=sys.stdout) function. 2014-12-08 20:25:49 +00:00
Makefile unix: Provide "fast" target to build interpreter for benchmarking. 2014-11-02 18:17:43 +02:00
modffi.c py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. 2014-12-05 23:13:52 +00:00
modos.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
modsocket.c py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. 2014-12-05 23:13:52 +00:00
modtermios.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
modtime.c Use MP_DEFINE_CONST_DICT macro to define module dicts. 2014-11-29 14:39:27 +00:00
mpconfigport_fast.h unix: fast: Set initial module dict size big to have high pystone score. 2014-11-05 00:30:21 +02:00
mpconfigport.h py: Allow builtins to be overridden. 2014-12-09 16:19:48 +00:00
mpconfigport.mk modtermios: Add "termios" unix module, subset of CPython's. 2014-08-23 06:09:46 +03:00
qstrdefsport.h unix: Rename "microsocket" module to "usocket". 2014-10-09 20:43:10 +03:00
seg_helpers.c unix: Create __bss_start and _end symbols for Mach-O targets. 2014-05-12 00:13:10 +02:00