Commit Graph

  • 3d484d9ad4 py: Update showbc to decode ptrs for MAKE_FUNCTION ops. Damien George 2014-04-13 11:22:44 +01:00
  • 0aab675108 stmhal: Little hack to dump GC allocation table using pyb.info(). Damien George 2014-04-13 11:10:58 +01:00
  • df8127a17e py: Remove unique_codes from emitglue.c. Replace with pointers. Damien George 2014-04-13 11:04:33 +01:00
  • 68e7c5146c py: Factor out impl of special methods for builtin types into opmethods.c Paul Sokolovsky 2014-04-13 11:53:15 +03:00
  • 036ad76659 objset: Implement __contains__() op-method. Paul Sokolovsky 2014-04-13 10:39:25 +03:00
  • 1a37588e35 py: Provide more details for too few and too much args for Python fun calls. Paul Sokolovsky 2014-04-13 11:24:14 +03:00
  • 48fdaad824 py: Rename collections module to _collections. Paul Sokolovsky 2014-04-13 10:17:04 +03:00
  • ef79a82cec README: Update for modffi being enabled by default for unix port. Paul Sokolovsky 2014-04-13 09:35:09 +03:00
  • 4165cd1c0c stmhal: Update for static mod sys. Paul Sokolovsky 2014-04-13 07:00:37 +03:00
  • a3e50eacca py: Move sys attribute qstrs's to core. Paul Sokolovsky 2014-04-13 06:55:24 +03:00
  • 5500cdeec7 py, unix: Convert sys module to static representation. Paul Sokolovsky 2014-04-13 06:43:18 +03:00
  • 18bef25a0c objlist: Add support for statically allocated lists. Paul Sokolovsky 2014-04-13 06:17:29 +03:00
  • f130ca1f60 py: Make bytes type hashable. Paul Sokolovsky 2014-04-13 05:41:00 +03:00
  • 73b7027b83 objstr: Add str.encode() and bytes.decode() methods. Paul Sokolovsky 2014-04-13 05:28:46 +03:00
  • aa6666c45e objlist: Make .extend accept arbitrary iterable. Paul Sokolovsky 2014-04-13 03:20:10 +03:00
  • fe6ded4d17 Merge pull request #472 from pfalcon/modffi-on Damien George 2014-04-13 00:37:03 +01:00
  • eb936189aa Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-13 00:32:56 +01:00
  • 8721087661 py: Big improvements to inline assembler. Damien George 2014-04-13 00:30:32 +01:00
  • 9a092831f7 unix: Enable modffi by default. Paul Sokolovsky 2014-04-13 00:01:40 +03:00
  • 06526e7ccc pip-micropython: Apply more workarounds for setuptools, pip, etc misfeatures. Paul Sokolovsky 2014-04-12 23:18:06 +03:00
  • 5630b01920 py: the entire <unistd.h> shouldn't be needed Ilya Dmitrichenko 2014-04-12 16:44:32 +01:00
  • 8e9482a3c3 py: don't look for any additional headers when lexerunix is disabled Ilya Dmitrichenko 2014-04-12 16:37:17 +01:00
  • 82c7b1b1d5 stmhal: Put a USB structure in ROM; GC doesn't scan the data segment. Damien George 2014-04-12 18:50:20 +01:00
  • b14f2a0ba3 Update .gitignore to ignore __pycache__/. Damien George 2014-04-12 18:30:22 +01:00
  • 71dcd51989 examples: Add example script to flash an LED using inline assembler. Damien George 2014-04-12 18:27:23 +01:00
  • 6ce4277551 py: Make all LOAD_FAST ops check for unbound local. Damien George 2014-04-12 18:20:40 +01:00
  • c2803db010 tests: Add some bytecode tests. Damien George 2014-04-12 18:00:32 +01:00
  • 0a4c210586 Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-12 17:55:32 +01:00
  • a26dc50968 py: Improve inline assembler; improve compiler constant folding. Damien George 2014-04-12 17:54:52 +01:00
  • 2813cb6043 py: Add 'static' to inline function MP_BOOL; remove category_t. Damien George 2014-04-12 17:53:05 +01:00
  • a5afc9009f builtinimport: Implement relative imports. Paul Sokolovsky 2014-04-12 17:46:54 +03:00
  • faf84491ce showbc: Add quotes around (some) string args, to show empty string properly. Paul Sokolovsky 2014-04-12 16:18:40 +03:00
  • d6c5d398fe Updated README. Damien George 2014-04-12 14:06:50 +01:00
  • c557215822 Add 'bare-arm' port: the bare minimum to get it running on an ARM MCU. Damien George 2014-04-12 13:07:45 +01:00
  • f7e4e1c2b4 py: Fix compiler warning when floats disabled. Damien George 2014-04-12 13:04:44 +01:00
  • 19b992a862 Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-12 01:01:17 +01:00
  • 42453dc98e py: Make ImportError message match CPython's. Paul Sokolovsky 2014-04-12 03:00:40 +03:00
  • 2ff3d9d0b2 builtinimport: Set __path__ attribute ASAP as it's clear we have a package. Paul Sokolovsky 2014-04-12 02:44:47 +03:00
  • 69f1867da5 builtinimport: Fix thinko passing 0 vs NULL. Paul Sokolovsky 2014-04-12 02:47:46 +03:00
  • b96c7c03ca stmhal: Move fatfs volume/partition lookup table to ROM. Damien George 2014-04-12 00:51:57 +01:00
  • 60427864b1 stmhal: Move I2C objects to ROM. Damien George 2014-04-12 00:51:41 +01:00
  • 8c63ef187d Merge pull request #465 from xbe/unix-gc Damien George 2014-04-12 00:27:19 +01:00
  • 8f19317540 py: Remove useless implementations of NOT_EQUAL in binary_op's. Damien George 2014-04-12 00:20:39 +01:00
  • db049c2e00 py: Change inline to static inline for 2 functions. Damien George 2014-04-12 00:08:40 +01:00
  • 7b4330191f py, compiler: Fix up creation of default positionals tuple. Damien George 2014-04-12 00:05:49 +01:00
  • c42e4b6c53 Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-11 23:26:18 +01:00
  • 8b19db00aa py, compiler: Fix compiling of keyword args following named star. Damien George 2014-04-11 23:25:34 +01:00
  • b9b1c00c8a showbs: Dump LOAD_CONST_BYTES. Paul Sokolovsky 2014-04-12 00:34:57 +03:00
  • 00a9d138b2 showbc: Dump LOAD_NULL. Paul Sokolovsky 2014-04-12 00:32:38 +03:00
  • af620abcb5 py: Implement "from pkg import mod" variant of import. Paul Sokolovsky 2014-04-12 00:15:19 +03:00
  • 13d52df4c5 builtinimport: Set __path__ attribute on packages. Paul Sokolovsky 2014-04-11 23:25:35 +03:00
  • e081329098 builtinimport: Elaborate debug output support. Paul Sokolovsky 2014-04-11 23:08:29 +03:00
  • a925cb54f1 py: Preprocess qstrdefs.h before feeding to makeqstrdata.py. Paul Sokolovsky 2014-04-11 20:50:15 +03:00
  • 6ea0e928d8 Revert "makeqstrdata.py: Add support for conditionally defined qstrs." Paul Sokolovsky 2014-04-11 20:36:08 +03:00
  • 1184094839 py: Revert some inline functions back to macros, since they bloat stmhal. Damien George 2014-04-11 22:30:09 +01:00
  • a36a55d2cf unix: Update comment in gccollect.c xbe 2014-04-11 04:05:48 -07:00
  • 69b89d21b2 py: Change compile order for default positional and keyword args. Damien George 2014-04-11 13:38:30 +00:00
  • 0e3329a6b8 py, compiler: Allow lambda's to yield. Damien George 2014-04-11 13:10:21 +00:00
  • 0288cf020e py: Implement compiling of *-expr within parenthesis. Damien George 2014-04-11 11:53:00 +00:00
  • a5c82a8187 py: Convert some macros to inline functions (in obj.h). Damien George 2014-04-11 11:16:53 +00:00
  • e22d76e73b py: Fix up object equality test. Damien George 2014-04-11 10:52:06 +00:00
  • a9ddd6d9df py: Simplify and improve mp_get_index. Damien George 2014-04-11 10:40:38 +00:00
  • 5f3fe3aa14 Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-11 10:11:07 +01:00
  • b8a053aeb1 py: Implement float and complex == and !=. Damien George 2014-04-11 10:10:37 +01:00
  • 87e380b7ea Merge pull request #461 from lurch/patch-1 Damien George 2014-04-11 09:55:50 +01:00
  • 686afc5c0a py: Check that sequence has 2 elements for dict iterable constructor. Damien George 2014-04-11 09:13:30 +01:00
  • be019ce063 objdict: Implement construction from iterable of pairs. Paul Sokolovsky 2014-04-11 07:01:15 +03:00
  • 12a04392b9 objdict: Implement __getitem__ method. Paul Sokolovsky 2014-04-11 05:24:44 +03:00
  • 263853ef84 modffi: Update for latest binary API refactors. Paul Sokolovsky 2014-04-11 05:17:41 +03:00
  • 0c43cf9154 modstruct: Basic implementation of native struct alignment and types. Paul Sokolovsky 2014-04-11 03:47:21 +03:00
  • ef9124f5ff binary: Rename array accessors for clarity. Paul Sokolovsky 2014-04-11 03:46:09 +03:00
  • 2da81fa80c mpconfig.h: Add basic support for target endianness configuration. Paul Sokolovsky 2014-04-11 03:44:00 +03:00
  • 6582d64d01 modstruct: Refactor to support both LE and BE packed structs. Paul Sokolovsky 2014-04-10 22:19:32 +03:00
  • 83346749da Update mkrules.mk Andrew Scheller 2014-04-11 00:41:59 +01:00
  • 2b9419b5bf Merge pull request #460 from lurch/patch-2 Damien George 2014-04-10 22:52:10 +01:00
  • 037b3e0e21 Merge pull request #458 from lurch/patch-1 Damien George 2014-04-10 22:51:48 +01:00
  • 3f4898456b stmhal: Add stm module, which contains some constants for the MCU. Damien George 2014-04-10 22:46:40 +01:00
  • 57e99ebc86 py: Add simple way of looking up constants in compiler. Damien George 2014-04-10 22:42:11 +01:00
  • 4391c8f38e Update .gitignore Andrew Scheller 2014-04-10 22:32:04 +01:00
  • ae491055fa py: Fix float/complex binop returning NULL; implement complex power. Damien George 2014-04-10 20:08:11 +01:00
  • f31b6ff334 tests: Add test for multi-comparison. Damien George 2014-04-10 17:29:51 +00:00
  • d66ae18640 py: Simplify stack get/set to become stack adjust in emitters. Damien George 2014-04-10 17:28:54 +00:00
  • 069a35e3a5 py, compiler: Improve stack depth counting. Damien George 2014-04-10 17:22:19 +00:00
  • 190d1ba297 py: Make sure state/stack of byte code function has at least 1 slot. Damien George 2014-04-10 16:59:56 +00:00
  • a1ef441d18 py: Fix VM stack overflow detection. Damien George 2014-04-10 16:59:44 +00:00
  • e90be0ddf5 py: Add option to VM to detect stack overflow. Damien George 2014-04-10 16:21:34 +00:00
  • c90717a3e4 py: Add missing dummy functions to pass 1 emitter. Damien George 2014-04-10 15:40:38 +00:00
  • 58ba4c3b4c py: Check explicitly for memory allocation failure in parser. Damien George 2014-04-10 14:27:31 +00:00
  • ffa9bddfc4 Make lexerunix not allocate RAM for the entire script. Damien George 2014-04-10 15:00:58 +01:00
  • f0954e3fac py: Add emergency exception object for when heap allocation fails. Damien George 2014-04-10 14:38:25 +01:00
  • 6f355fd3b9 py: Make labels unsigned ints (converted from int). Damien George 2014-04-10 14:11:31 +01:00
  • bf8ae4d96e py: Fix modstruct to compile on 64-bit machine. Damien George 2014-04-10 13:53:31 +01:00
  • 3a8b1607fc Merge branch 'master' of github.com:micropython/micropython Damien George 2014-04-10 12:58:31 +01:00
  • 635543c72c py, compiler: Implement compiling of relative imports. Damien George 2014-04-10 12:56:52 +01:00
  • 2e9eb2d207 py: Fix lexer so it doesn't allow ! and .. Damien George 2014-04-10 12:19:33 +01:00
  • 175cecfa87 py: Make form-feed character a space (following C isspace). Damien George 2014-04-10 11:39:36 +01:00
  • a91f41407b py, lexer: Fix parsing of raw strings (allow escaping of quote). Damien George 2014-04-10 11:30:55 +01:00
  • f22626ee4f unix: Add option to only compile, and not execute code. Damien George 2014-04-10 11:30:35 +01:00
  • 978607aeff objfun: Fix default arguments filling loop, was broken in presense of kwargs. Paul Sokolovsky 2014-04-10 05:39:38 +03:00
  • 41e2dea4ca objfun: More debug logging when calling a bytecode function. Paul Sokolovsky 2014-04-10 05:37:58 +03:00