| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2014-07-31 | py: Make MP_OBJ_NEW_SMALL_INT cast arg to mp_int_t itself. | Damien George | |
| Addresses issue #724. | |||
| 2014-07-24 | py: Make long ints hashable. | Damien George | |
| Addresses issue #765. | |||
| 2014-07-03 | Rename machine_(u)int_t to mp_(u)int_t. | Damien George | |
| See discussion in issue #50. | |||
| 2014-07-01 | stackctrl: Add "mp_" prefix. | Paul Sokolovsky | |
| 2014-06-28 | Merge branch 'master' into unicode | Damien George | |
| Conflicts: py/mpconfig.h | |||
| 2014-06-28 | py: Add protection against printing too nested or recursive data structures. | Paul Sokolovsky | |
| With a test which cannot be automatically validated so far. | |||
| 2014-06-27 | objstrunicode: Revamp len() handling for unicode, and optimize bool(). | Paul Sokolovsky | |
| 2014-06-20 | py: Separate MICROPY_PY_BUILTINS_COMPLEX from MICROPY_PY_BUILTINS_FLOAT. | Paul Sokolovsky | |
| One thing is wanting to do 1 / 2 and get something else but 0, and quite another - doing rocket science ;-). | |||
| 2014-06-01 | Rename bultins config variables to MICROPY_PY_BUILTINS_*. | Damien George | |
| This renames: MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT See issue #35 for discussion. | |||
| 2014-05-21 | py: Rename MP_OBJ_NOT_SUPPORTED to MP_OBJ_NULL. | Damien George | |
| See issue #608 for justification. | |||
| 2014-05-17 | py: More const usage. | Paul Sokolovsky | |
| 2014-05-11 | py: Fix __len__ special method result handling. | Paul Sokolovsky | |
| Having both MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL is arguably confusing. | |||
| 2014-05-11 | py: Start making good use of mp_const_obj_t. | Paul Sokolovsky | |
| 2014-05-10 | py: Make mp_obj_print() handle null object w/o segfault if debug build. | Paul Sokolovsky | |
| Happens regularly when used for debugging. | |||
| 2014-05-03 | Add license header to (almost) all files. | Damien George | |
| 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/. | |||
| 2014-05-02 | py, unix: Make "mpconfig.h" be first included, as other headers depend on it. | Paul Sokolovsky | |
| Specifically, nlr.h does. | |||
| 2014-04-18 | py: Allow to pass buffer protocol flags to get_buffer helper funcs. | Damien George | |
| 2014-04-18 | py: Add typecode to buffer protocol. | Damien George | |
| When querying an object that supports the buffer protocol, that object must now return a typecode (as per binary.[ch]). This does not have to be honoured by the caller, but can be useful for determining element size. | |||
| 2014-04-17 | py: Add MP_OBJ_STOP_ITERATION and make good use of it. | Damien George | |
| Also make consistent use of MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL. This helps a lot in debugging and understanding of function API. | |||
| 2014-04-17 | py: Merge BINARY_OP_SUBSCR and store_subscr (w/ delete) into subscr. | Damien George | |
| mp_obj_t->subscr now does load/store/delete. | |||
| 2014-04-15 | py: Add len(bytes). | Damien George | |
| 2014-04-13 | py: Fix SyntaxError exception: don't have a block name, so pass NULL. | Damien George | |
| 2014-04-13 | py: Fix mp_get_buffer, and use it in more places. | Damien George | |
| Must use mp_obj_get_type to get the type of an object. Can't assume mp_obj_t is castable to mp_obj_base_t. | |||
| 2014-04-13 | py: Make bytes type hashable. | Paul Sokolovsky | |
| 2014-04-11 | py: Convert some macros to inline functions (in obj.h). | Damien George | |
| Also convert mp_obj_is_integer to an inline function. Overall this decreased code size (at least on 32-bit x86 machine). | |||
| 2014-04-11 | py: Fix up object equality test. | Damien George | |
| It regressed a bit after implementing float/complex equality. Now it should be improved, and support more equality tests. | |||
| 2014-04-11 | py: Simplify and improve mp_get_index. | Damien George | |
| It has (again) a fast path for ints, and a simplified "slow" path for everything else. Also simplify the way str indexing is done (now matches tuple and list). | |||
| 2014-04-11 | py: Implement float and complex == and !=. | Damien George | |
| Addresses issue #462. | |||
| 2014-04-11 | py: Check that sequence has 2 elements for dict iterable constructor. | Damien George | |
| 2014-04-09 | py: Add mp_obj_is_integer; make mp_get_index check for long int. | Damien George | |
| mp_obj_is_integer should be used to check if an object is of integral type. It returns true for bool, small int and long int. | |||
| 2014-04-09 | py: Add mp_get_buffer(), mp_get_buffer_raise() convenience functions to API. | Paul Sokolovsky | |
| 2014-04-05 | py: Change nlr_jump to nlr_raise, to aid in debugging. | Damien George | |
| This does not affect code size or performance when debugging turned off. To address issue #420. | |||
| 2014-04-05 | mp_obj_get_int(): Add warning against adding implicit float->int conversion. | Paul Sokolovsky | |
| 2014-04-05 | py: Allow types to be hashable. | Paul Sokolovsky | |
| Quite natural to have d[int] = handle_int . | |||
| 2014-04-04 | py: Remove mp_obj_less (use mp_binary_op(MP_BINARY_OP_LESS..) instead). | Damien George | |
| 2014-04-03 | py: More robust int conversion and overflow checking. | Damien George | |
| 2014-04-01 | py: Remove implicit conversion from int to float. | Damien George | |
| 2014-04-01 | Enhance str.format support | Dave Hylands | |
| 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 | |||
| 2014-03-31 | objexcept: No more magic messages in exceptions, only exception arguments. | Paul Sokolovsky | |
| One of the reason for separate "message" (besides still unfulfilled desire to optimize memory usage) was apparent special handling of exception with messages by CPython. Well, the message is still just an exception argument, it just printed specially. Implement that with PRINT_EXC printing format. | |||
| 2014-03-30 | py: Add equality test for None object. | Damien George | |
| 2014-03-30 | Merge map.h into obj.h. | Damien George | |
| Pretty much everyone needs to include map.h, since it's such an integral part of the Micro Python object implementation. Thus, the definitions are now in obj.h instead. map.h is removed. | |||
| 2014-03-30 | Rename rt_* to mp_*. | Damien George | |
| Mostly just a global search and replace. Except rt_is_true which becomes mp_obj_is_true. Still would like to tidy up some of the names, but this will do for now. | |||
| 2014-03-30 | mp_obj_print_exception(): Assert that traceback has sane number of entries. | Paul Sokolovsky | |
| 2014-03-29 | py: Support mpz -op- float, mpz -op- complex, and complex -op- mpz. | Damien George | |
| 2014-03-29 | py: Rename old const type objects to mp_type_* for consistency. | Damien George | |
| 2014-03-29 | py: Change mp_const_* objects to macros. | Damien George | |
| Addresses issue #388. | |||
| 2014-03-24 | py: Remove obsolete declarations; make mp_obj_get_array consistent. | Damien George | |
| 2014-03-22 | py: Add function to convert long int to float. | Damien George | |
| 2014-03-20 | py: Allow hashing of functions and tuples. | Damien George | |
| 2014-03-17 | py: Clean up includes. | xbe | |
| Remove unnecessary includes. Add includes that improve portability. | |||
