summaryrefslogtreecommitdiff
path: root/py
AgeCommit message (Collapse)Author
2014-03-16Implement support for __str__ and __repr__ special methods in classes.Paul Sokolovsky
2014-03-15py: Fix bug in vstr_ins_blank_bytes.Damien George
2014-03-15Add vstr_ins and vstr_cut_out; improve stmhal readline.Damien George
2014-03-14stmhal - add pin mapping, gpio, exti, usrswDave Hylands
2014-03-13py: In string.count, handle case of zero-length needle.Damien George
2014-03-13Fix issues in str.count implementation.xbe
See pull request #343.
2014-03-12Implement str.count and add tests for it.xbe
Also modify mp_get_index to accept: 1. Indices that are or evaluate to a boolean. 2. Slice indices. Add tests for these two cases.
2014-03-12py: Cosmetic changes.Damien George
2014-03-12Merge pull request #340 from iabdalkader/reallocDamien George
Fix realloc
2014-03-12py: Add expm1 to math module.Damien George
2014-03-12Fix reallocmux
2014-03-12py: Implement integer overflow checking for * and << ops.Damien George
If operation will overflow, a multi-precision integer is created.
2014-03-12py: Fix some bugs in mpz; add mpz_from_ll and mpz_set_from_ll.Damien George
A couple of bugs in mpn_shl, and overflow bug in mpz_set_from_int.
2014-03-10Rename formatfloat file; remove MICROPY_ENABLE_FLOAT from mpconfigport.h.Damien George
MICROPY_ENABLE_FLOAT is automatically set in mpconfig.h if MICROPY_FLOAT_IMPL is set to a non-zero value.
2014-03-10Add proper floating point printing support.Dave Hylands
2014-03-10Fix makeqstrdata.py to work in Python 2.7Dave Hylands
2014-03-09py: Make objstr support buffer protocol (read only).Damien George
2014-03-09py: Fix printing of type name.Damien George
2014-03-08Implement ROMable modules. Add math module.Damien George
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).
2014-03-08py: Wrap mpz float functions in MICROPY_ENABLE_FLOAT.Damien George
2014-03-08makeqstrdata: print error to stderr.Damien George
2014-03-07py: Revert to old gc_realloc for now.Damien George
2014-03-06py: Add comments to new gc_realloc, it has some bugs.Damien George
2014-03-06py: Small cosmetic changes to gc_realloc.Damien George
2014-03-05Merge pull request #334 from iabdalkader/reallocDamien George
Fix gc_realloc to expand in place
2014-03-05Fix gc_realloc to expand in placemux
* Issue #322
2014-03-03py: Fix overriding of default arguments.Damien George
Addresses issue #327.
2014-03-03py: Unify syntax error handling in compiler; check defualt arg syntax.Damien George
Checks for non-default args following default args, and errors out. Addresses issue #328.
2014-03-03py: Factor and improve issubclass.Damien George
2014-03-03namedtuple: Inherit unary/binary ops from tuple base class.Paul Sokolovsky
2014-03-03Add mp_obj_is_subclass_fast() - intended for fast argument checking.Paul Sokolovsky
I.e. as replacement of MP_OBJ_IS_TYPE(), which takes into account subclassing.
2014-03-03Add basic collections.namedtuple implementation.Paul Sokolovsky
2014-03-01Merge pull request #330 from pfalcon/cortex-aDamien George
Support building "unix" port for ARM
2014-03-01py: Implement bit-shift and not operations for mpz.Damien George
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.
2014-03-01nlrthumb.S: Comment out ".cpu cortex-m4", it causes problems on Cortex-A.Paul Sokolovsky
2014-03-01nlr.h: Do proper arch selection, using the same tests as nlr*.S .Paul Sokolovsky
2014-02-26GC: Fix printf formats for debugging; add gc_dump_alloc_table.Damien George
2014-02-26py: Remove more var arg names fro macros with var args.Damien George
2014-02-26py: Reduce size of mp_obj_fun_native_t struct by packing ints.Damien George
2014-02-26py: Take out bitfield entries from their own structure.Damien George
Don't need to wrap bitfields in their own struct. Compiler does the correct thing without it.
2014-02-26py: Remove name of var arg from macros with var args.Damien George
2014-02-26py: Start to implement shl/shr for mpz. Fix return void.Damien George
2014-02-24py: Fix mpn_sub, was increasing wrong source pointer.Damien George
Also change int -> machine_int_t where appropriate.
2014-02-22Add arbitrary precision integer support.Damien George
Some functionality is still missing (eg and, or, bit shift), and some things are buggy (eg subtract).
2014-02-22py: Put number parsing code together in parsenum.c.Damien George
2014-02-22py: Rename strtonum to mp_strtonum.Damien George
strtonum clashes with BSD function of same name, and our version is different so warrants a unique name. Addresses Issue #305.
2014-02-22py: Fix casting and printing of small int.Damien George
2014-02-22parse: Refactor parse node encoding to support full range of small ints.Paul Sokolovsky
Based on suggestion by @dpgeorge at https://github.com/micropython/micropython/pull/313
2014-02-21parse: Note that fact that parser's small ints are different than VM small int.Paul Sokolovsky
Specifically, VM's small ints are 31 bit, while parser's only 28. There's already MP_OBJ_FITS_SMALL_INT(), so, for clarity, rename MP_FIT_SMALL_INT() to MP_PARSE_FITS_SMALL_INT().
2014-02-21showbc: Update for recent int varlen storage refactor.Paul Sokolovsky
TODO: De-duplicate DECODE_UINT, etc. definitions.