circuitpython/unix
Paul Sokolovsky 0ef01d0a75 py: Implement core of OrderedDict type.
Given that there's already support for "fixed table" maps, which are
essentially ordered maps, the implementation of OrderedDict just extends
"fixed table" maps by adding an "is ordered" flag and add/remove
operations, and reuses 95% of objdict code, just making methods tolerant
to both dict and OrderedDict.

Some things are missing so far, like CPython-compatible repr and comparison.

OrderedDict is Disabled by default; enabled on unix and stmhal ports.
2015-03-20 17:26:10 +00:00
..
.gitignore unix: Update .gitignore for "fast" and "minimal" builds. 2015-01-16 18:05:31 +00:00
alloc.c unix: Add target to build "minimal" uPy interpreter. 2015-01-16 18:03:01 +00:00
file.c py, unix: Allow to compile with -Wunused-parameter. 2015-01-20 12:47:20 +00:00
gccollect.c unix: Add target to build "minimal" uPy interpreter. 2015-01-16 18:03:01 +00:00
input.c unix: Support readline history saving to file, improves interactive usage. 2015-03-13 21:46:19 +00:00
input.h unix: Support readline history saving to file, improves interactive usage. 2015-03-13 21:46:19 +00:00
main.c unix: Support readline history saving to file, improves interactive usage. 2015-03-13 21:46:19 +00:00
Makefile unix: Enable extra compiler warnings. 2015-03-19 00:25:33 +00:00
modffi.c modffi: Implement 'O' type handling for func arguments. 2015-02-25 23:38:22 +02:00
modos.c unix: Prefix includes with py/; remove need for -I../py. 2015-01-01 20:40:19 +00:00
modsocket.c py, unix: Allow to compile with -Wunused-parameter. 2015-01-20 12:47:20 +00:00
modtermios.c unix: Prefix includes with py/; remove need for -I../py. 2015-01-01 20:40:19 +00:00
modtime.c py, unix, lib: Allow to compile with -Wold-style-definition. 2015-01-12 22:34:38 +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_minimal.h unix: Add target to build "minimal" uPy interpreter. 2015-01-16 18:03:01 +00:00
mpconfigport.h py: Implement core of OrderedDict type. 2015-03-20 17:26:10 +00:00
mpconfigport.mk unix: Add target to build "minimal" uPy interpreter. 2015-01-16 18:03:01 +00:00
qstrdefsport.h modffi: Add .addr() method to just get symbol address. 2015-02-06 00:19:43 +02:00