micropython/py
xbe 9e1e8cd642 Implement str.count and add tests for it.
Also modify mp_get_index to accept:
1. Indices that are or evaluate to a boolean.
2. Slice indices.
Add tests for these two cases.
2014-03-12 22:57:16 -07:00
..
asmthumb.c Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 2014-02-12 18:31:30 +02:00
asmthumb.h Revert MP_BOOL, etc. and use <stdbool.h> instead 2014-01-06 13:51:53 -08:00
asmx64.c Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 2014-02-12 18:31:30 +02:00
asmx64.h Revert MP_BOOL, etc. and use <stdbool.h> instead 2014-01-06 13:51:53 -08:00
bc0.h py: Tidy up BINARY_OPs; negation done by special NOT bytecode. 2014-02-01 23:04:09 +00:00
bc.h py: VM never throws an exception, instead returns a status and value. 2014-02-15 22:55:00 +00:00
binary.c Add arbitrary precision integer support. 2014-02-22 19:25:23 +00:00
binary.h ffi: Implement ffivar.get()/set() methods. 2014-02-14 20:38:35 +02:00
builtin.c Implement ROMable modules. Add math module. 2014-03-08 15:24:39 +00:00
builtin.h Implement ROMable modules. Add math module. 2014-03-08 15:24:39 +00:00
builtinevex.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
builtinimport.c __import__: Catch relative import attempts and throw NotImplementedError. 2014-02-21 01:15:20 +02:00
builtinmath.c py: Add expm1 to math module. 2014-03-12 21:31:41 +00:00
builtinmp.c Implement ROMable modules. Add math module. 2014-03-08 15:24:39 +00:00
compile.c py: Unify syntax error handling in compiler; check defualt arg syntax. 2014-03-03 23:19:11 +00:00
compile.h Add source file name and line number to error messages. 2014-01-18 23:24:36 +00:00
emit.h py: Add built-in super. 2014-02-05 00:51:47 +00:00
emitbc.c emitbc: Correct buffer sizes for varlen int encoding. 2014-02-20 13:25:05 +02:00
emitcommon.c py: Remove name of var arg from macros with var args. 2014-02-26 16:57:08 +00:00
emitcpy.c Propagate scope flags refactor to emitcpy.c. 2014-02-16 03:02:47 +02:00
emitinlinethumb.c parse: Refactor parse node encoding to support full range of small ints. 2014-02-22 16:39:45 +02:00
emitnative.c Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 2014-02-12 18:31:30 +02:00
emitpass1.c Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 2014-02-12 18:31:30 +02:00
formatfloat.c Rename formatfloat file; remove MICROPY_ENABLE_FLOAT from mpconfigport.h. 2014-03-10 13:27:02 +00:00
formatfloat.h Rename formatfloat file; remove MICROPY_ENABLE_FLOAT from mpconfigport.h. 2014-03-10 13:27:02 +00:00
gc.c py: Cosmetic changes. 2014-03-12 22:44:11 +00:00
gc.h GC: Fix printf formats for debugging; add gc_dump_alloc_table. 2014-02-26 22:55:59 +00:00
grammar.h Clean up handling of function return type annotation. 2014-02-10 02:04:26 +02:00
lexer.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
lexer.h Search paths properly on import and execute __init__.py if it exists. 2014-02-05 23:57:48 +00:00
lexerstr.c Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 2014-02-12 18:31:30 +02:00
lexerunix.c Remove older import helpers, no longer used. 2014-02-05 02:03:23 +02:00
lexerunix.h Move lexerstr to main py directory (everyone uses it). 2014-01-08 15:28:26 +00:00
makeqstrdata.py Fix makeqstrdata.py to work in Python 2.7 2014-03-10 00:07:35 -07:00
malloc.c py: Remove name of var arg from macros with var args. 2014-02-26 16:57:08 +00:00
map.c Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 2014-02-12 18:31:30 +02:00
map.h py: Take out bitfield entries from their own structure. 2014-02-26 17:40:52 +00:00
misc.h py: Take out bitfield entries from their own structure. 2014-02-26 17:40:52 +00:00
mkenv.mk Rework makefiles. Add proper dependency checking. 2014-01-24 08:46:48 -08:00
mkrules.mk Fixed dependency problem for qstrdefs.generated.h 2014-01-25 08:55:31 -08:00
mpconfig.h Implement ROMable modules. Add math module. 2014-03-08 15:24:39 +00:00
mpz.c py: Fix some bugs in mpz; add mpz_from_ll and mpz_set_from_ll. 2014-03-12 15:36:06 +00:00
mpz.h py: Fix some bugs in mpz; add mpz_from_ll and mpz_set_from_ll. 2014-03-12 15:36:06 +00:00
nlr.h nlr.h: Do proper arch selection, using the same tests as nlr*.S . 2014-03-01 10:05:33 +02:00
nlrthumb.S nlrthumb.S: Comment out ".cpu cortex-m4", it causes problems on Cortex-A. 2014-03-01 10:05:53 +02:00
nlrx64.S Typo fix in comment. 2014-02-11 02:28:36 +02:00
nlrx86.S Fixed problems with nlx86.S on Linux 2014-01-28 19:52:04 +01:00
obj.c Implement str.count and add tests for it. 2014-03-12 22:57:16 -07:00
obj.h Implement str.count and add tests for it. 2014-03-12 22:57:16 -07:00
objarray.c Implement str.count and add tests for it. 2014-03-12 22:57:16 -07:00
objarray.h Add objarray.h . 2014-01-19 01:40:47 +02:00
objbool.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objboundmeth.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objcell.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objclosure.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objcomplex.c Implement ROMable modules. Add math module. 2014-03-08 15:24:39 +00:00
objdict.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objenumerate.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objexcept.c py: Fix printing of type name. 2014-03-09 16:29:36 +00:00
objfilter.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objfloat.c py: Implement integer overflow checking for * and << ops. 2014-03-12 15:38:15 +00:00
objfun.c Implement ROMable modules. Add math module. 2014-03-08 15:24:39 +00:00
objgenerator.c py: VM never throws an exception, instead returns a status and value. 2014-02-15 22:55:00 +00:00
objgetitemiter.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objint_longlong.c Add arbitrary precision integer support. 2014-02-22 19:25:23 +00:00
objint_mpz.c py: Implement integer overflow checking for * and << ops. 2014-03-12 15:38:15 +00:00
objint.c py: Implement integer overflow checking for * and << ops. 2014-03-12 15:38:15 +00:00
objint.h Add arbitrary precision integer support. 2014-02-22 19:25:23 +00:00
objlist.c Implement str.count and add tests for it. 2014-03-12 22:57:16 -07:00
objmap.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objmodule.c Implement ROMable modules. Add math module. 2014-03-08 15:24:39 +00:00
objnamedtuple.c namedtuple: Inherit unary/binary ops from tuple base class. 2014-03-03 11:42:53 +08:00
objnone.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objrange.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objset.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objslice.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
objstr.c Implement str.count and add tests for it. 2014-03-12 22:57:16 -07:00
objtuple.c Implement str.count and add tests for it. 2014-03-12 22:57:16 -07:00
objtuple.h namedtuple: Inherit unary/binary ops from tuple base class. 2014-03-03 11:42:53 +08:00
objtype.c py: Factor and improve issubclass. 2014-03-03 22:38:13 +00:00
objzip.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
parse.c py: Implement bit-shift and not operations for mpz. 2014-03-01 19:50:50 +00:00
parse.h py: Put number parsing code together in parsenum.c. 2014-02-22 18:12:43 +00:00
parsehelper.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
parsehelper.h Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
parsenum.c py: Implement bit-shift and not operations for mpz. 2014-03-01 19:50:50 +00:00
parsenum.h py: Put number parsing code together in parsenum.c. 2014-02-22 18:12:43 +00:00
parsenumbase.c py: Implement bit-shift and not operations for mpz. 2014-03-01 19:50:50 +00:00
parsenumbase.h py: Implement bit-shift and not operations for mpz. 2014-03-01 19:50:50 +00:00
py.mk Rename formatfloat file; remove MICROPY_ENABLE_FLOAT from mpconfigport.h. 2014-03-10 13:27:02 +00:00
qstr.c py: Remove name of var arg from macros with var args. 2014-02-26 16:57:08 +00:00
qstr.h Add qstr_info() function and bindings for unix port. 2014-01-29 18:56:46 +00:00
qstrdefs.h py: Add expm1 to math module. 2014-03-12 21:31:41 +00:00
repl.c mp_repl_is_compound_stmt(): Thinko fix s/true/try/. 2014-01-11 00:12:06 +02:00
repl.h Merge remote-tracking branch 'upstream/master' into dict_feats 2014-01-07 23:06:46 +00:00
runtime0.h Support passing positional args as keywords to bytecode functions. 2014-02-16 18:36:33 +02:00
runtime.c py: Implement integer overflow checking for * and << ops. 2014-03-12 15:38:15 +00:00
runtime.h Add pin mapping code. 2014-02-17 21:20:38 -08:00
scope.c py: Pass all scope flags through to runtime. 2014-02-15 19:33:11 +00:00
scope.h py: Pass all scope flags through to runtime. 2014-02-15 19:33:11 +00:00
sequence.c Implement str.count and add tests for it. 2014-03-12 22:57:16 -07:00
showbc.c py: Fix casting and printing of small int. 2014-02-22 17:34:09 +00:00
stream.c Implement proper exception type hierarchy. 2014-02-15 16:10:44 +00:00
stream.h stream: Add generic unbuffered iternext method. 2014-01-20 18:42:08 +02:00
unicode.c Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 2014-02-12 18:31:30 +02:00
vm.c py: Fix type of integer in decoding int. 2014-02-20 00:00:04 +00:00
vstr.c Replace global "static" -> "STATIC", to allow "analysis builds". Part 2. 2014-02-12 18:31:30 +02:00