- 12 Aug, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Damien George authored
reversed function now implemented, and works for tuple, list, str, bytes and user objects with __len__ and __getitem__. Renamed mp_builtin_len to mp_obj_len to make it publically available (eg for reversed).
-
- 19 Jul, 2014 1 commit
-
-
Paul Sokolovsky authored
And not system printf(), like it was before. For this, move pfenv_printf() from stmhal port to py/.
-
- 09 Jul, 2014 1 commit
-
-
Paul Sokolovsky authored
But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout.
-
- 26 Jun, 2014 2 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Such mechanism is important to get stable Python functioning, because Python function calling is handled with C stack. The idea is to sprinkle STACK_CHECK() calls in places where there can be C recursion. TODO: Add more STACK_CHECK()'s.
-
- 05 May, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 26 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 23 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
To help with debugging issue like #510 for example.
-
- 19 Apr, 2014 1 commit
-
-
Damien George authored
These are to assist in writing native C functions that take positional and keyword arguments. mp_arg_check_num is for just checking the number of arguments is correct. mp_arg_parse_all is for parsing positional and keyword arguments with default values.
-
- 17 Apr, 2014 2 commits
-
-
Damien George authored
Any generated headers go in $(BUILD)/genhdr/, and are #included as 'genhdr/xxx.h'.
-
Damien George authored
Not all functions implemented. Not enabled on pyboard.
-
- 16 Apr, 2014 2 commits
-
-
Paul Sokolovsky authored
Having an optimized asm implementation is good, but if we want portability, that's it.
-
Andrew Scheller authored
The autogenerated header files have been moved about, and an extra include dir has been added, which means you can give a custom BUILD=newbuilddir option to make, and everything "just works" Also tidied up the way the different Makefiles build their include- directory flags
-
- 13 Apr, 2014 3 commits
-
-
Damien George authored
Enabled by MICROPY_ENABLE_PROPERTY.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 11 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
This is alternative implementation of supporting conditionals in qstrdefs.h, hard to say if it's much cleaner than munging #ifdef's in Python code...
-
- 10 Apr, 2014 1 commit
-
-
Paul Sokolovsky authored
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.
-
- 07 Apr, 2014 1 commit
-
-
Andrew Scheller authored
-
- 04 Apr, 2014 1 commit
-
-
Damien George authored
Previous overflow test was inadequate.
-
- 03 Apr, 2014 2 commits
-
-
Dave Hylands authored
-
Paul Sokolovsky authored
So far just includes "open" function, which should be supplied by a port. TODO: Make the module #ifdef'ed.
-
- 01 Apr, 2014 1 commit
-
-
Dave Hylands authored
This adds support for almost everything (the comma isn't currently supported). The "unspecified" type with floats also doesn't behave exactly like python. Tested under unix with float and double Spot tested on stmhal
-
- 27 Mar, 2014 1 commit
-
-
Damien George authored
-
- 25 Mar, 2014 1 commit
-
-
Damien George authored
Comes with some refactoring of code and renaming of files. All modules are now named mod*.[ch].
-
- 22 Mar, 2014 2 commits
-
-
Damien George authored
-
Rachel Dowdall authored
Fixed modulo operator on ints and mp ints to agree with python. Added intdivmod.c and tests/basics/modulo.py.
-
- 10 Mar, 2014 2 commits
-
-
Damien George authored
MICROPY_ENABLE_FLOAT is automatically set in mpconfig.h if MICROPY_FLOAT_IMPL is set to a non-zero value.
-
Dave Hylands authored
-
- 08 Mar, 2014 1 commit
-
-
Damien George authored
mp_module_obj_t can now be put in ROM. Configuration of float type is now similar to longint: can now choose none, float or double as the implementation. math module has basic math functions. For STM port, these are not yet implemented (they are just stub functions).
-
- 03 Mar, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 01 Mar, 2014 1 commit
-
-
Damien George authored
Implement not, shl and shr in mpz library. Add function to create mpzs on the stack, used for memory efficiency when rhs is a small int. Factor out code to parse base-prefix of number into a dedicated function.
-
- 22 Feb, 2014 2 commits
-
-
Damien George authored
Some functionality is still missing (eg and, or, bit shift), and some things are buggy (eg subtract).
-
Damien George authored
-
- 15 Feb, 2014 1 commit
-
-
Damien George authored
Each built-in exception is now a type, with base type BaseException. C exceptions are created by passing a pointer to the exception type to make an instance of. When raising an exception from the VM, an instance is created automatically if an exception type is raised (as opposed to an exception instance). Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper. Handling of parse error changed to match new exceptions. mp_const_type renamed to mp_type_type for consistency.
-
- 14 Feb, 2014 1 commit
-
-
Paul Sokolovsky authored
Done by introducing another factored out helper API in binary.c. This API can be reused also by array and struct modules.
-
- 03 Feb, 2014 1 commit
-
-
Damien George authored
-
- 30 Jan, 2014 1 commit
-
-
Damien George authored
-
- 25 Jan, 2014 1 commit
-
-
Dave Hylands authored
The problem manifests itself in make 4.0 I also fixed the LINK message when linking the final executable for unix and unix-cpy.
-