micropython/py
Paul Sokolovsky 6ead0d2fbc objtype: Implement basic framework for subclassing native types.
This implements checking of base types, allocation and basic initialization,
and optimized support for special method lookups. Other features are not yet
supported.
2014-04-29 20:31:13 +03:00
..
argcheck.c Simplify names for argcheck.c / arg parsing. 2014-04-26 11:19:17 +01:00
asmthumb.c py: Add 'align' and 'data' meta-instructions to inline assembler. 2014-04-21 13:33:15 +01:00
asmthumb.h py: Add 'align' and 'data' meta-instructions to inline assembler. 2014-04-21 13:33:15 +01: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: Remove unnecessary LOAD_CONST_ID bytecode. 2014-04-27 19:12:05 +01:00
bc.h vm: Add rudimentary bytecode execution tracing capability. 2014-04-23 03:46:00 +03:00
binary.c modstruct: Add 'O' typecode for passing mp_obj_t. 2014-04-20 13:08:33 +03:00
binary.h modstruct: Initial implementation of struct.pack(). 2014-04-19 03:22:08 +03:00
builtin.c Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
builtin.h py: Make built-in 'range' a class. 2014-04-17 18:18:55 +01:00
builtinevex.c py: Add traceback info to syntax errors. 2014-04-13 11:56:02 +01:00
builtinimport.c builtinimport: If there was error compiling imported module, raise exception. 2014-04-22 02:53:20 +03:00
builtintables.c Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
builtintables.h py: Make globals and locals proper dictionary objects. 2014-04-05 22:36:42 +01:00
compile.c py: Add '*' qstr for 'import *'; use blank qstr for comprehension arg. 2014-04-27 19:23:46 +01:00
compile.h py, compiler: Clean up and compress scope/compile structures. 2014-04-09 12:27:39 +01:00
emit.h py: Remove unnecessary LOAD_CONST_ID bytecode. 2014-04-27 19:12:05 +01:00
emitbc.c py: Remove unnecessary LOAD_CONST_ID bytecode. 2014-04-27 19:12:05 +01:00
emitcommon.c Merge pull request #471 from errordeveloper/misc_fix/unistd 2014-04-13 13:22:36 +01:00
emitcpy.c py: Remove unnecessary LOAD_CONST_ID bytecode. 2014-04-27 19:12:05 +01:00
emitglue.c py: Implement keyword-only args. 2014-04-27 15:50:52 +01:00
emitglue.h py: Implement keyword-only args. 2014-04-27 15:50:52 +01:00
emitinlinethumb.c py: Implement keyword-only args. 2014-04-27 15:50:52 +01:00
emitnative.c py: Remove unnecessary LOAD_CONST_ID bytecode. 2014-04-27 19:12:05 +01:00
emitpass1.c py: Remove unnecessary LOAD_CONST_ID bytecode. 2014-04-27 19:12:05 +01:00
formatfloat.c Enhance str.format support 2014-04-01 01:17:33 -07:00
formatfloat.h Rename formatfloat file; remove MICROPY_ENABLE_FLOAT from mpconfigport.h. 2014-03-10 13:27:02 +00:00
gc.c py, gc: Only zero out the extra bytes at the end of the heap chunk. 2014-04-26 22:23:42 +01:00
gc.h py: Improve GC locking/unlocking, and make it part of the API. 2014-04-08 11:31:21 +00:00
grammar.h py: Change the way function arguments are compiled. 2014-04-27 16:46:51 +01:00
lexer.c py: Fix lexer so it doesn't allow ! and .. 2014-04-10 12:19:33 +01: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 py: Clean up includes. 2014-03-17 02:43:40 -07:00
lexerunix.c py: Fix lexerunix, where not all data may be read from a file. 2014-04-28 11:43:28 +01:00
lexerunix.h Move lexerstr to main py directory (everyone uses it). 2014-01-08 15:28:26 +00:00
makeqstrdata.py py: Add '*' qstr for 'import *'; use blank qstr for comprehension arg. 2014-04-27 19:23:46 +01:00
malloc.c py, gc: Only zero out the extra bytes at the end of the heap chunk. 2014-04-26 22:23:42 +01:00
map.c py: Fix bug in map lookup of interned string vs non-interned. 2014-04-28 12:11:57 +01:00
misc.h Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
mkenv.mk Have make remove targets if a recipie fails. 2014-04-16 11:36:44 -07:00
mkrules.mk build: Simplify build directory layout by putting all headers in genhdr. 2014-04-17 18:03:27 +01:00
modarray.c Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
modcmath.c Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
modcollections.c Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
modio.c modio: Implement io.StringIO class. 2014-04-26 20:26:14 +03:00
modmath.c Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
modmicropython.c Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
modstruct.c Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
modsys.c Add ARRAY_SIZE macro, and use it where possible. 2014-04-26 10:47:29 +01:00
mpconfig.h py: Make collections module configurable, enabled by default. 2014-04-26 10:31:15 +01:00
mpz.c py: Add comment mpz function, and free memory used for string printing. 2014-04-08 23:11:00 +01:00
mpz.h Add string formatting support for longlong and mpz. 2014-04-07 11:38:45 -07:00
nlr.h nlr: Add implementation using setjmp/longjmp. 2014-04-17 00:19:18 +03:00
nlrsetjmp.c nlr: Add implementation using setjmp/longjmp. 2014-04-17 00:19:18 +03:00
nlrthumb.S Add a check for NULL nlr_top in nlr_jump. 2014-04-08 14:08:14 +00:00
nlrx64.S Add a check for NULL nlr_top in nlr_jump. 2014-04-08 14:08:14 +00:00
nlrx86.S nlrx86.S: Another ifdef for win32 symbol underscoring issues. 2014-04-20 22:24:44 +03:00
obj.c py: Allow to pass buffer protocol flags to get_buffer helper funcs. 2014-04-18 22:59:24 +01:00
obj.h py: Clear allocated, but unused memory in containers. 2014-04-28 00:33:21 +03:00
objarray.c py: Clear allocated, but unused memory in containers. 2014-04-28 00:33:21 +03:00
objarray.h py: Make bytearray a proper type. 2014-04-08 22:11:40 +03:00
objbool.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objboundmeth.c Rename rt_* to mp_*. 2014-03-30 13:35:08 +01:00
objcell.c objcell: Add disabled by default print method for debugging. 2014-04-20 13:08:33 +03:00
objclosure.c py: Making closures now passes pointer to stack, not a tuple for vars. 2014-04-20 17:50:40 +01:00
objcomplex.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objdict.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objenumerate.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objexcept.c objexcept: Don't store args tuple within exception object. 2014-04-23 04:07:00 +03:00
objfilter.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objfloat.c objfloat: Try to achieve the same float printing format as CPython does. 2014-04-18 21:21:59 +03:00
objfun.c py: Implement keyword-only args. 2014-04-27 15:50:52 +01:00
objfun.h py: Implement keyword-only args. 2014-04-27 15:50:52 +01:00
objgenerator.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objgenerator.h py: Swap around the double return value of mp_obj_gen_resume. 2014-03-26 19:33:23 +00:00
objgetitemiter.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objint_longlong.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objint_mpz.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objint.c py: Allow to pass buffer protocol flags to get_buffer helper funcs. 2014-04-18 22:59:24 +01:00
objint.h py: Make it so that printing a small int does not allocate heap memory. 2014-04-08 23:30:46 +01:00
objlist.c py: Clear allocated, but unused memory in containers. 2014-04-28 00:33:21 +03:00
objlist.h objlist: Add support for statically allocated lists. 2014-04-13 07:02:56 +03:00
objmap.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objmodule.c py: Finish implementation of all del opcodes. 2014-04-08 21:11:49 +01:00
objmodule.h Proper support for registering builtin modules in ROM. 2014-03-25 14:18:18 +00:00
objnamedtuple.c py: Make collections module configurable, enabled by default. 2014-04-26 10:31:15 +01:00
objnone.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objobject.c py: Make all objects and instances derive from object. 2014-04-05 22:45:23 +01:00
objproperty.c py: Add property object, with basic functionality. 2014-04-13 18:59:45 +01:00
objrange.c py: Add arg checking helper functions. 2014-04-20 00:13:22 +01:00
objset.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objslice.c py: Rename old const type objects to mp_type_* for consistency. 2014-03-29 13:43:38 +00:00
objstr.c objstr: Optimize .rstrip() by scanning string from end. 2014-04-26 06:48:31 +03:00
objstr.h py: Add builtin functions bin and oct, and some tests for them. 2014-04-15 22:03:55 +01:00
objstringio.c objstringio: Compile only if MICROPY_ENABLE_MOD_IO defined. 2014-04-26 20:59:39 +03:00
objtuple.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
objtuple.h py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 2014-04-17 22:10:53 +01:00
objtype.c objtype: Implement basic framework for subclassing native types. 2014-04-29 20:31:13 +03:00
objzip.c py: Add MP_OBJ_STOP_ITERATION and make good use of it. 2014-04-17 23:19:36 +01:00
opmethods.c py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 2014-04-17 22:10:53 +01:00
parse.c py: Check explicitly for memory allocation failure in parser. 2014-04-10 14:27:31 +00:00
parse.h py: Check explicitly for memory allocation failure in parser. 2014-04-10 14:27:31 +00:00
parsehelper.c py: Fix SyntaxError exception: don't have a block name, so pass NULL. 2014-04-13 15:01:28 +01:00
parsehelper.h py: Add traceback info to syntax errors. 2014-04-13 11:56:02 +01:00
parsenum.c Remove exception name from inside the exception message 2014-04-09 19:56:38 +01:00
parsenum.h py: Allow 'complex()' to take a string as first argument. 2014-03-21 11:45:46 +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
pfenv.c py: Fix pfenv_print_strn to return correct number of chars printed. 2014-04-17 18:58:09 +01:00
pfenv.h py: Reinstate old pfenv_print_int function for stmhal's printf. 2014-04-08 22:10:37 +01:00
py-version.sh Add the git version to the banner 2014-04-03 16:55:15 -07:00
py.mk modio: Implement io.StringIO class. 2014-04-26 20:26:14 +03:00
qstr.c build: Simplify build directory layout by putting all headers in genhdr. 2014-04-17 18:03:27 +01:00
qstr.h build: Simplify build directory layout by putting all headers in genhdr. 2014-04-17 18:03:27 +01:00
qstrdefs.h py: Remove silly comment about interning keywords. 2014-04-28 09:56:31 +01:00
repl.c py: Continue line if last character is backslash. 2014-04-08 11:33:28 +00:00
repl.h Improve REPL detecting when input needs to continue. 2014-04-08 11:04:29 +00:00
runtime0.h py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. 2014-04-17 22:10:53 +01:00
runtime.c py: Support instance __call__ method. 2014-04-25 21:17:42 +03:00
runtime.h Simplify names for argcheck.c / arg parsing. 2014-04-26 11:19:17 +01:00
scope.c py: Implement keyword-only args. 2014-04-27 15:50:52 +01:00
scope.h py: Implement keyword-only args. 2014-04-27 15:50:52 +01:00
sequence.c sequence: Further simplify sequence comparison. 2014-04-18 21:47:58 +03:00
showbc.c py: Remove unnecessary LOAD_CONST_ID bytecode. 2014-04-27 19:12:05 +01:00
smallint.c py: This time, real proper overflow checking of small int power. 2014-04-04 11:13:51 +00:00
smallint.h py: This time, real proper overflow checking of small int power. 2014-04-04 11:13:51 +00:00
stream.c streams: Make .write() support arbitrary objects with buffer interface. 2014-04-26 05:54:16 +03:00
stream.h stream: Add generic unbuffered iternext method. 2014-01-20 18:42:08 +02:00
unicode.c py: Make form-feed character a space (following C isspace). 2014-04-10 11:39:36 +01:00
vm.c py: Remove unnecessary LOAD_CONST_ID bytecode. 2014-04-27 19:12:05 +01:00
vmentrytable.h py: Remove unnecessary LOAD_CONST_ID bytecode. 2014-04-27 19:12:05 +01:00
vstr.c py: Fix vstr_init for case that alloc = 0. 2014-03-31 17:10:59 +01:00