1. 01 Jan, 2015 3 commits
  2. 27 Dec, 2014 2 commits
    • Damien George's avatar
      py: Allow to properly disable builtin slice operation. · 83204f34
      Damien George authored
      This patch makes the MICROPY_PY_BUILTINS_SLICE compile-time option
      fully disable the builtin slice operation (when set to 0).  This
      includes removing the slice sytanx from the grammar.  Now, enabling
      slice costs 4228 bytes on unix x64, and 1816 bytes on stmhal.
      83204f34
    • Damien George's avatar
      py: Allow to properly disable builtin "set" object. · e37dcaaf
      Damien George authored
      This patch makes MICROPY_PY_BUILTINS_SET compile-time option fully
      disable the builtin set object (when set to 0).  This includes removing
      set constructor/comprehension from the grammar, the compiler and the
      emitters.  Now, enabling set costs 8168 bytes on unix x64, and 3576
      bytes on stmhal.
      e37dcaaf
  3. 19 Oct, 2014 1 commit
  4. 12 Oct, 2014 3 commits
  5. 03 Oct, 2014 2 commits
  6. 29 Sep, 2014 6 commits
  7. 23 Sep, 2014 1 commit
  8. 15 Sep, 2014 1 commit
  9. 12 Sep, 2014 1 commit
    • Damien George's avatar
      py: Load strings as objects when compiling viper. · bb295468
      Damien George authored
      Eventually, viper wants to be able to use raw pointers to strings and
      arrays for efficient access.  But for now, let's just load strings as a
      Python object so they can be used as normal.  This will anyway be
      compatible with eventual intended viper behaviour.
      
      Addresses issue #857.
      bb295468
  10. 08 Sep, 2014 2 commits
  11. 07 Sep, 2014 1 commit
  12. 06 Sep, 2014 4 commits
  13. 03 Sep, 2014 1 commit
  14. 29 Aug, 2014 1 commit
  15. 27 Aug, 2014 1 commit
  16. 16 Aug, 2014 2 commits
  17. 15 Aug, 2014 3 commits
  18. 03 Jul, 2014 1 commit
  19. 30 Jun, 2014 1 commit
    • Damien George's avatar
      py: Improvements to native emitter. · b601d957
      Damien George authored
      Native emitter can now compile try/except blocks using nlr_push/nlr_pop.
      It probably only works for 1 level of exception handling.  It doesn't
      work on Thumb (only x64).
      
      Native emitter can also handle some additional op codes.
      
      With this patch, 198 tests now pass using "-X emit=native" option to
      micropython.
      b601d957
  20. 22 Jun, 2014 1 commit
  21. 21 Jun, 2014 1 commit
  22. 30 May, 2014 1 commit
    • Damien George's avatar
      py: Fix break from within a for loop. · 25c84643
      Damien George authored
      Needed to pop the iterator object when breaking out of a for loop.  Need
      also to be careful to unwind exception handler before popping iterator.
      
      Addresses issue #635.
      25c84643