1. 20 Jul, 2015 1 commit
    • Damien George's avatar
      py: Make qstr hash size configurable, defaults to 2 bytes. · c3bd9415
      Damien George authored
      This patch makes configurable, via MICROPY_QSTR_BYTES_IN_HASH, the
      number of bytes used for a qstr hash.  It was originally fixed at 2
      bytes, and now defaults to 2 bytes.  Setting it to 1 byte will save
      ROM and RAM at a small expense of hash collisions.
      c3bd9415
  2. 20 Jun, 2015 1 commit
    • Damien George's avatar
      py: Use a wrapper to explicitly check self argument of builtin methods. · 06593fb0
      Damien George authored
      Previous to this patch a call such as list.append(1, 2) would lead to a
      seg fault.  This is because list.append is a builtin method and the first
      argument to such methods is always assumed to have the correct type.
      
      Now, when a builtin method is extracted like this it is wrapped in a
      checker object which checks the the type of the first argument before
      calling the builtin function.
      
      This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and
      is enabled by default.
      
      See issue #1216.
      06593fb0
  3. 21 Apr, 2015 1 commit
  4. 14 Mar, 2015 1 commit
  5. 10 Jan, 2015 1 commit
  6. 16 Nov, 2014 1 commit
  7. 06 Nov, 2014 1 commit
  8. 23 Oct, 2014 1 commit
  9. 08 Sep, 2014 1 commit
  10. 24 Aug, 2014 1 commit
  11. 12 Aug, 2014 1 commit
  12. 03 Jul, 2014 1 commit
  13. 27 Jun, 2014 2 commits
  14. 08 Jun, 2014 1 commit
  15. 01 Jun, 2014 2 commits
  16. 24 May, 2014 1 commit
  17. 21 May, 2014 1 commit
    • Damien George's avatar
      Tidy up some configuration options. · 58ebde46
      Damien George authored
      MP_ALLOC_* -> MICROPY_ALLOC_*
      MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX
      MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL
      MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX
      MICROPY_EXTRA_* -> MICROPY_PORT_*
      
      See issue #35.
      58ebde46
  18. 26 Apr, 2014 1 commit
  19. 13 Apr, 2014 1 commit
  20. 12 Apr, 2014 1 commit