- Apr 07, 2014
-
-
Damien George authored
-
Damien George authored
Makefile tweaks
-
Damien George authored
Modify set tests to print sorted sets directly
-
Damien George authored
-
Damien George authored
Add tests for sorted() function
-
Andrew Scheller authored
instead of creating temporary lists and sorting those in-place
-
Andrew Scheller authored
and check that sorted(list) produces same output as list.sort()
-
Andrew Scheller authored
-
Andrew Scheller authored
-
Damien George authored
-
Paul Sokolovsky authored
No longer needed after recent change which guarantees that mp_set_init() will allocate exact number of slots requested.
-
Paul Sokolovsky authored
-
- Apr 06, 2014
-
-
Damien George authored
-
Paul Sokolovsky authored
-
Damien George authored
Seems that this fixes all set tests.
-
Paul Sokolovsky authored
So, pip-micropython can/should be run as normal pip: pip-micropython install micropython-unittest
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
With dict being unordered of course.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Sure, it's O(n^2).
-
Paul Sokolovsky authored
Two things: 1) set flags in copy properly; make mp_map_init() not be too smart and do something with requested alloc size. Policy of using prime numbers for alloc size is high-level policy which should be applied at corresponding high levels. Low-level functions should just do what they're asked to, because they don't have enough context to be smarter than that. For example, munging with alloc size of course breaks dict copying (as changing sizes requires rehashing).
-
Paul Sokolovsky authored
-
Damien George authored
On x64, native emitter now passes 70 of the tests.
-
Damien George authored
Also add command line option to unix port to select emitter.
-
Damien George authored
-
- Apr 05, 2014
-
-
Paul Sokolovsky authored
Based on the discussion in #433. mp_load_attr() is critical-path function, so any extra check will slowdown any script. As supporting default val required only for getattr() builtin, move correspending implementation there (still as a separate function due to concerns of maintainability of such almost-duplicated code instances).
-
Damien George authored
-
Damien George authored
-
Paul Sokolovsky authored
-
Damien George authored
-
Damien George authored
This is to reduce ROM usage. stream_p is used in file and socket types only (at the moment), so seems a good idea to make the protocol functions a pointer instead of the actual structure. It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/.
-
Paul Sokolovsky authored
-
Damien George authored
This makes isinstance(X, object) and issubclass(X, object) true for all X.
-
Damien George authored
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.
-
Damien George authored
Towards addressing issue #424. Had a small increase to ROM usage (order 60 bytes).
-
Damien George authored
-
Damien George authored
-
Damien George authored
Implement del
-