1. 01 Dec, 2014 1 commit
  2. 29 Nov, 2014 1 commit
  3. 22 Nov, 2014 1 commit
  4. 16 Nov, 2014 1 commit
  5. 15 Nov, 2014 1 commit
  6. 31 Oct, 2014 2 commits
  7. 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
  8. 23 Oct, 2014 1 commit
  9. 22 Oct, 2014 2 commits
  10. 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
  11. 18 Oct, 2014 1 commit
  12. 13 Oct, 2014 1 commit
  13. 12 Oct, 2014 1 commit
  14. 11 Oct, 2014 1 commit
  15. 30 Sep, 2014 1 commit
  16. 29 Sep, 2014 1 commit
  17. 21 Sep, 2014 1 commit
  18. 17 Sep, 2014 2 commits
  19. 07 Sep, 2014 2 commits
  20. 06 Sep, 2014 1 commit
  21. 27 Aug, 2014 1 commit
  22. 26 Aug, 2014 1 commit
  23. 15 Aug, 2014 1 commit
  24. 12 Aug, 2014 4 commits
  25. 28 Jul, 2014 1 commit
  26. 25 Jul, 2014 1 commit
    • Dave Hylands's avatar
      Add support for storing args during an exception raised by an irq. · 5b7fd20f
      Dave Hylands authored
      The user code should call micropython.alloc_emergency_exception_buf(size)
      where size is the size of the buffer used to print the argument
      passed to the exception.
      
      With the test code from #732, and a call to
      micropython.alloc_emergenncy_exception_buf(100) the following error is
      now printed:
      ```python
      >>> import heartbeat_irq
      Uncaught exception in Timer(4) interrupt handler
      Traceback (most recent call last):
        File "0://heartbeat_irq.py", line 14, in heartbeat_cb
      NameError: name 'led' is not defined
      ```
      5b7fd20f
  27. 19 Jul, 2014 1 commit
  28. 10 Jul, 2014 1 commit
  29. 09 Jul, 2014 1 commit
  30. 03 Jul, 2014 1 commit
  31. 25 Jun, 2014 1 commit
  32. 11 Jun, 2014 1 commit
    • Paul Sokolovsky's avatar
      py: Rename builtin "io" to "_io". · fbdf2f1d
      Paul Sokolovsky authored
      Functionality we provide in builtin io module is fairly minimal. Some
      code, including CPython stdlib, depends on more functionality. So, there's
      a choice to either implement it in C, or move it _io, and let implement other
      functionality in Python. 2nd choice is pursued. This setup matches CPython
      too (_io is builtin, io is Python-level).
      fbdf2f1d