1. 16 Feb, 2017 1 commit
    • Damien George's avatar
      py: Add iter_buf to getiter type method. · ae8d8675
      Damien George authored
      Allows to iterate over the following without allocating on the heap:
      - tuple
      - list
      - string, bytes
      - bytearray, array
      - dict (not dict.keys, dict.values, dict.items)
      - set, frozenset
      Allows to call the following without heap memory:
      - all, any, min, max, sum
      TODO: still need to allocate stack memory in bytecode for iter_buf.
  2. 23 Jan, 2016 1 commit
  3. 29 Nov, 2015 1 commit
    • Damien George's avatar
      py: Wrap all obj-ptr conversions in MP_OBJ_TO_PTR/MP_OBJ_FROM_PTR. · 999cedb9
      Damien George authored
      This allows the mp_obj_t type to be configured to something other than a
      pointer-sized primitive type.
      This patch also includes additional changes to allow the code to compile
      when sizeof(mp_uint_t) != sizeof(void*), such as using size_t instead of
      mp_uint_t, and various casts.
  4. 30 Aug, 2015 1 commit
  5. 04 Apr, 2015 1 commit
  6. 01 Jan, 2015 1 commit
  7. 03 May, 2014 1 commit
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      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/.
  8. 02 May, 2014 1 commit
  9. 17 Apr, 2014 1 commit
  10. 05 Apr, 2014 1 commit
  11. 30 Mar, 2014 2 commits
  12. 26 Mar, 2014 1 commit
  13. 17 Mar, 2014 1 commit
    • xbe's avatar
      py: Clean up includes. · efe34223
      xbe authored
      Remove unnecessary includes. Add includes that improve portability.
  14. 15 Feb, 2014 2 commits
    • Damien George's avatar
      Implement proper exception type hierarchy. · c5966128
      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.
    • Damien George's avatar
      Change mp_obj_type_t.name from const char * to qstr. · a71c83a1
      Damien George authored
      Ultimately all static strings should be qstr.  This entry in the type
      structure is only used for printing error messages (to tell the type of
      the bad argument), and printing objects that don't supply a .print method.
  15. 12 Feb, 2014 1 commit
  16. 25 Jan, 2014 1 commit