1. 12 Aug, 2014 4 commits
  2. 28 Jul, 2014 1 commit
  3. 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
  4. 19 Jul, 2014 1 commit
  5. 10 Jul, 2014 1 commit
  6. 09 Jul, 2014 1 commit
  7. 03 Jul, 2014 1 commit
  8. 25 Jun, 2014 1 commit
  9. 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
  10. 07 Jun, 2014 2 commits
  11. 01 Jun, 2014 1 commit
    • Damien George's avatar
      Rename bultins config variables to MICROPY_PY_BUILTINS_*. · fb510b3b
      Damien George authored
      This renames:
      MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET
      MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY
      MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE
      MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT
      
      See issue #35 for discussion.
      fb510b3b
  12. 31 May, 2014 1 commit
  13. 24 May, 2014 3 commits
  14. 19 May, 2014 2 commits
    • Paul Sokolovsky's avatar
      py: Implement proper separation between io.FileIO and io.TextIOWrapper. · 9e29666b
      Paul Sokolovsky authored
      io.FileIO is binary I/O, ans actually optional. Default file type is
      io.TextIOWrapper, which provides str results. CPython3 explicitly describes
      io.TextIOWrapper as buffered I/O, but we don't have buffering support yet
      anyway.
      9e29666b
    • Paul Sokolovsky's avatar
      objtype: Separate __new__ and __init__ methods. · 13684fd6
      Paul Sokolovsky authored
      Now schedule is: for native types, we call ->make_new() C-level method, which
      should perform actions of __new__ and __init__ (note that this is not
      compliant, but is efficient), but for user types, __new__ and __init__ are
      called as expected.
      
      Also, make sure we convert scalar attribute value to a bound-pair tight in
      mp_obj_class_lookup() method, which avoids converting it again and again in
      its callers.
      13684fd6
  15. 13 May, 2014 1 commit
  16. 11 May, 2014 1 commit
  17. 10 May, 2014 4 commits
  18. 08 May, 2014 2 commits
  19. 06 May, 2014 1 commit
  20. 05 May, 2014 1 commit
  21. 03 May, 2014 2 commits
  22. 28 Apr, 2014 1 commit
    • Damien George's avatar
      py: Remove silly comment about interning keywords. · 0c8fcb9c
      Damien George authored
      Of course, keywords are turned into lexer tokens in the lexer, so will
      never need to be interned (unless you do something like x="def").
      
      As it is now, the following on pyboard makes no new qstrs:
      
          import pyb
          pyb.info()
      0c8fcb9c
  23. 27 Apr, 2014 1 commit
  24. 26 Apr, 2014 3 commits
  25. 25 Apr, 2014 1 commit
  26. 21 Apr, 2014 1 commit