- 24 Jan, 2016 1 commit
-
-
Damien George authored
micropython.stack_use() returns an integer being the number of bytes used on the stack. micropython.heap_lock() and heap_unlock() can be used to prevent the memory manager from allocating anything on the heap. Calls to these are allowed to be nested.
-
- 23 Jan, 2016 2 commits
-
-
Dave Hylands authored
This allows FROZEN_DIR=some-directory to be specified on the make command line, which will then add all of the files contained within the indicated frozen directory as frozen files in the image. There is no change in flash/ram usage if not using the feature. This is especially useful on smaller MCUs (like the 401) which only has 64K flash file system.
-
Paul Sokolovsky authored
-
- 21 Jan, 2016 1 commit
-
-
Paul Sokolovsky authored
By reserving enough space for peer address.
-
- 19 Jan, 2016 2 commits
-
-
Dave Hylands authored
Implement enough of statvfs to determine the amount of free space on a volume.
-
Dave Hylands authored
-
- 17 Jan, 2016 3 commits
-
-
Paul Sokolovsky authored
This allows to cut number of packages installed from 3rd-party package repos, and otherwise cut number of overrides and hacks.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Seedable and reproducible pseudo-random number generator. Implemented functions are getrandbits(n) (n <= 32) and seed(). The algorithm used is Yasmarang by Ilya Levin: http://www.literatecode.com/yasmarang
-
- 16 Jan, 2016 1 commit
-
-
Damien George authored
-
- 15 Jan, 2016 5 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
This will help make sure new commits work with OBJ_REPR_D.
-
Damien George authored
Build using: make nanbox
-
Damien George authored
-
- 14 Jan, 2016 2 commits
-
-
chrysn authored
this allows python code to use property(lambda:..., doc=...) idiom. named versions for the fget, fset and fdel arguments are left out in the interest of saving space; they are rarely used and easy to enable when actually needed. a test case is included.
-
stijn authored
This is essentially a duplicate of obj_dict.py
-
- 13 Jan, 2016 3 commits
-
-
Peter Hinch authored
-
Damien George authored
Makes code easier to read and more maintainable.
-
Damien George authored
-
- 12 Jan, 2016 1 commit
-
-
Antonin ENFRUN authored
-
- 11 Jan, 2016 5 commits
-
-
Damien George authored
-
Dave Hylands authored
-
Damien George authored
The first argument to the type.make_new method is naturally a uPy type, and all uses of this argument cast it directly to a pointer to a type structure. So it makes sense to just have it a pointer to a type from the very beginning (and a const pointer at that). This patch makes such a change, and removes all unnecessary casting to/from mp_obj_t.
-
Damien George authored
With this patch the n_args parameter is changed type from mp_uint_t to size_t.
-
Damien George authored
This patch changes the type signature of .make_new and .call object method slots to use size_t for n_args and n_kw (was mp_uint_t. Makes code more efficient when mp_uint_t is larger than a machine word. Doesn't affect ports when size_t and mp_uint_t have the same size.
-
- 10 Jan, 2016 3 commits
-
-
Dave Hylands authored
-
Paul Sokolovsky authored
Instead of struct tm like structure, as required by CPython.
-
Damien George authored
-
- 09 Jan, 2016 1 commit
-
-
Paul Sokolovsky authored
Replace hyphens with undescores in modules.
-
- 08 Jan, 2016 9 commits
-
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
This allows a port to specify exactly how many bits are in a small int (eg for a uPy bytecode cross compiler).
-
Damien George authored
-
Damien George authored
In some cases ssize_t is not defined by already included headers.
-
Damien George authored
Need to record in .mpy file whether unicode is enabled, and how many bits are in a small int.
-
- 07 Jan, 2016 1 commit
-
-
Paul Sokolovsky authored
-