| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
|
| |
Blanket wide to all .c and .h files. Some files originating from ST are
difficult to deal with (license wise) so it was left out of those.
Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
|
| |
|
| |
|
|
|
|
| |
Addresses issue #487.
|
|
|
|
| |
Not all functions implemented. Not enabled on pyboard.
|
| |
|
|
|
|
| |
A one-liner, added especially for @pfalcon :)
|
|
|
|
| |
Enabled by MICROPY_ENABLE_PROPERTY.
|
| |
|
|\
| |
| | |
Convert sys module to static allocation
|
| | |
|
|/
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
| |
Only calcsize() and unpack() functions provided so far, for little-endian
byte order. Format strings don't support repition spec (like "2b3i").
Unfortunately, dealing with all the various binary type sizes and alignments
will lead to quite a bloated "binary" helper functions - if optimizing for
speed. Need to think if using dynamic parametrized algos makes more sense.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Finishes addressing issue #424.
In the end this was a very neat refactor that now makes things a lot
more consistent across the py code base. It allowed some
simplifications in certain places, now that everything is a dict object.
Also converted builtins tables to dictionaries. This will be useful
when we need to turn builtins into a proper module.
|
|
|
|
| |
That's how CPython has it, in particular, "import __main__" should work.
|
|
|
|
|
|
| |
So far just includes "open" function, which should be supplied by a port.
TODO: Make the module #ifdef'ed.
|
| |
|
|
|
|
| |
Addresses issue #388.
|
|
|
|
|
| |
Only exceptions that are actually used are left prefedined. Hierarchy
is still there, and removed exceptions are just commented out.
|
| |
|
|
|
|
|
| |
They still exist in commented-out form in objexcept.c if they are ever
needed.
|
|
Comes with some refactoring of code and renaming of files. All modules
are now named mod*.[ch].
|