- 14 Apr, 2014 7 commits
-
-
Damien George authored
-
Paul Sokolovsky authored
That was easy - just avoid erroring out on seeing candidate dir for namespace package. That's far from being complete though - namespace packages should support importing portions of package from different sys.path entries, here we require first matching entry to contain all namespace package's portions. And yet, that's a way to put parts of the same Python package into multiple installable package - something we really need for *Micro*Python.
-
Paul Sokolovsky authored
-
Damien George authored
Disabled by default. Enabled in unix port.
-
AZ Huang authored
-
AZ Huang authored
-
Andrew Scheller authored
See discussion on https://github.com/micropython/micropython/commit/2da81fa80c4cd965f05ad237d81d9764322fde20 Explicitly set `MP_ENDIANNESS_LITTLE` because that's the #define that is used in code elsewhere.
-
- 13 Apr, 2014 31 commits
-
-
Paul Sokolovsky authored
The logic appears to be that (at least beginning of) sys.versions is the version of reference Python language implemented, not version of particular implementation. Also, bump set versions at 3.4.0, based on @dpgeorge preference.
-
Paul Sokolovsky authored
Similar to tuples, lists, dicts. Statically allocated strings don't have hash computed.
-
Paul Sokolovsky authored
This feature was proposed with initial hashing RFC, and is prerequisite for seamless static str object definition.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
Enabled by MICROPY_ENABLE_PROPERTY.
-
Damien George authored
-
Damien George authored
-
Damien George authored
Should address issue #475.
-
Damien George authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
Must use mp_obj_get_type to get the type of an object. Can't assume mp_obj_t is castable to mp_obj_base_t.
-
Damien George authored
Should fix issue #463.
-
Damien George authored
-
Damien George authored
Attempt to address issue #386. unique_code_id's have been removed and replaced with a pointer to the "raw code" information. This pointer is stored in the actual byte code (aligned, so the GC can trace it), so that raw code (ie byte code, native code and inline assembler) is kept only for as long as it is needed. In memory it's now like a tree: the outer module's byte code points directly to its children's raw code. So when the outer code gets freed, if there are no remaining functions that need the raw code, then the children's code gets freed as well. This is pretty much like CPython does it, except that CPython stores indexes in the byte code rather than machine pointers. These indices index the per-function constant table in order to find the relevant code.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
We're not going to implement all the plethora of types in there in C. Funnily, CPython implements defaultdict in C, and namedtuple in Python.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Similar to similar support for lists.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
These largely duplicate str() & bytes() constructors' functionality, but can be used to achieve Python2 compatibility.
-
Paul Sokolovsky authored
-
- 12 Apr, 2014 2 commits
-
-
Damien George authored
Improved the Thumb assembler back end. Added many more Thumb instructions to the inline assembler. Improved parsing of assembler instructions and arguments. Assembler functions can now be passed the address of any object that supports the buffer protocol (to get the address of the buffer). Added an example of how to sum numbers from an array in assembler.
-
Damien George authored
This is necessary to catch all cases where locals are referenced before assignment. We still keep the _0, _1, _2 versions of LOAD_FAST to help reduced the byte code size in RAM. Addresses issue #457.
-