1. 21 Jan, 2015 1 commit
  2. 11 Jan, 2015 2 commits
    • Damien George's avatar
      py: Add MICROPY_QSTR_BYTES_IN_LEN config option, defaulting to 1. · 95836f84
      Damien George authored
      This new config option sets how many fixed-number-of-bytes to use to
      store the length of each qstr.  Previously this was hard coded to 2,
      but, as per issue #1056, this is considered overkill since no-one
      needs identifiers longer than 255 bytes.
      
      With this patch the number of bytes for the length is configurable, and
      defaults to 1 byte.  The configuration option filters through to the
      makeqstrdata.py script.
      
      Code size savings going from 2 to 1 byte:
      - unix x64 down by 592 bytes
      - stmhal down by 1148 bytes
      - bare-arm down by 284 bytes
      
      Also has RAM savings, and will be slightly more efficient in execution.
      95836f84
    • Damien George's avatar
  3. 09 Jan, 2015 1 commit
  4. 01 Jan, 2015 1 commit
  5. 19 Dec, 2014 1 commit
  6. 08 Dec, 2014 1 commit
    • Paul Sokolovsky's avatar
      modsys: Add sys.print_exception(exc, file=sys.stdout) function. · 46c3ab20
      Paul Sokolovsky authored
      The function is modeled after traceback.print_exception(), but unbloated,
      and put into existing module to save overhead on adding another module.
      Compliant traceback.print_exception() is intended to be implemented in
      micropython-lib in terms of sys.print_exception().
      
      This change required refactoring mp_obj_print_exception() to take pfenv_t
      interface arguments.
      
      Addresses #751.
      46c3ab20
  7. 01 Dec, 2014 1 commit
  8. 29 Nov, 2014 1 commit
  9. 22 Nov, 2014 1 commit
  10. 16 Nov, 2014 1 commit
  11. 15 Nov, 2014 1 commit
  12. 31 Oct, 2014 2 commits
  13. 25 Oct, 2014 2 commits
    • Damien George's avatar
      py: Add mp_pending_exception global variable, for VM soft interrupt. · 124df6f8
      Damien George authored
      This allows to implement KeyboardInterrupt on unix, and a much safer
      ctrl-C in stmhal port.  First ctrl-C is a soft one, with hope that VM
      will notice it; second ctrl-C is a hard one that kills anything (for
      both unix and stmhal).
      
      One needs to check for a pending exception in the VM only for jump
      opcodes.  Others can't produce an infinite loop (infinite recursion is
      caught by stack check).
      124df6f8
    • Damien George's avatar
      py: Implement compile builtin, enabled only on unix port. · c9fc6207
      Damien George authored
      This should be pretty compliant with CPython, except perhaps for some
      corner cases to do with globals/locals context.
      
      Addresses issue #879.
      c9fc6207
  14. 23 Oct, 2014 1 commit
  15. 22 Oct, 2014 2 commits
  16. 21 Oct, 2014 1 commit
    • stijn's avatar
      Implement kwargs for builtin open() and _io.FileIO · 2fe4cf77
      stijn authored
      This makes open() and _io.FileIO() more CPython compliant.
      The mode kwarg is fully iplemented.
      The encoding kwarg is allowed but not implemented; mainly to allow
      the tests to specify encoding for CPython, see #874
      2fe4cf77
  17. 18 Oct, 2014 1 commit
  18. 13 Oct, 2014 1 commit
  19. 12 Oct, 2014 1 commit
  20. 11 Oct, 2014 1 commit
  21. 30 Sep, 2014 1 commit
  22. 29 Sep, 2014 1 commit
  23. 21 Sep, 2014 1 commit
  24. 17 Sep, 2014 2 commits
  25. 07 Sep, 2014 2 commits
  26. 06 Sep, 2014 1 commit
  27. 27 Aug, 2014 1 commit
  28. 26 Aug, 2014 1 commit
  29. 15 Aug, 2014 1 commit
  30. 12 Aug, 2014 4 commits
  31. 28 Jul, 2014 1 commit