1. 07 Jan, 2015 1 commit
  2. 01 Jan, 2015 1 commit
  3. 16 Dec, 2014 1 commit
  4. 14 Dec, 2014 1 commit
  5. 09 Dec, 2014 1 commit
    • Damien George's avatar
      py: Allow builtins to be overridden. · 78d702c3
      Damien George authored
      This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
      which, when enabled, allows to override all names within the builtins
      module.  A builtins override dict is created the first time the user
      assigns to a name in the builtins model, and then that dict is searched
      first on subsequent lookups.  Note that this implementation doesn't
      allow deleting of names.
      
      This patch also does some refactoring of builtins code, creating the
      modbuiltins.c file.
      
      Addresses issue #959.
      78d702c3
  6. 29 Nov, 2014 1 commit
  7. 22 Nov, 2014 1 commit
  8. 16 Nov, 2014 1 commit
  9. 25 Oct, 2014 1 commit
  10. 23 Oct, 2014 1 commit
  11. 22 Oct, 2014 1 commit
  12. 12 Oct, 2014 1 commit
  13. 11 Oct, 2014 2 commits
  14. 09 Oct, 2014 1 commit
  15. 07 Oct, 2014 1 commit
  16. 29 Sep, 2014 1 commit
  17. 17 Sep, 2014 1 commit
  18. 06 Sep, 2014 1 commit
  19. 03 Sep, 2014 2 commits
  20. 24 Aug, 2014 2 commits
  21. 23 Aug, 2014 1 commit
    • Paul Sokolovsky's avatar
      modtermios: Add "termios" unix module, subset of CPython's. · 4f9ebade
      Paul Sokolovsky authored
      Also provides setraw() function from "tty" module (which in CPython is
      implemented in Python). The idea here is that 95% of "termios" module usage
      is to set raw mode to allow access to normal serial devices. Then, instead
      of exporting gazillion termios symbols, it's better to implement it in C,
      and export minimal number of symbols (mostly baud rates and drain values).
      4f9ebade
  22. 12 Aug, 2014 1 commit
  23. 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
  24. 19 Jul, 2014 1 commit
    • Damien George's avatar
      py: Add stream reading of n unicode chars; unicode support by default. · 1694bc73
      Damien George authored
      With unicode enabled, this patch allows reading a fixed number of
      characters from text-mode streams; eg file.read(5) will read 5 unicode
      chars, which can made of more than 5 bytes.
      
      For an ASCII stream (ie no chars > 127) it only needs to do 1 read.  If
      there are lots of non-ASCII chars in a stream, then it needs multiple
      reads of the underlying object.
      
      Adds a new test for this case.  Enables unicode support by default on
      unix and stmhal ports.
      1694bc73
  25. 13 Jul, 2014 1 commit
  26. 09 Jul, 2014 1 commit
  27. 03 Jul, 2014 2 commits
  28. 28 Jun, 2014 1 commit
  29. 20 Jun, 2014 1 commit
  30. 08 Jun, 2014 1 commit
  31. 07 Jun, 2014 2 commits
  32. 05 Jun, 2014 2 commits
  33. 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
  34. 24 May, 2014 1 commit