1. 16 Feb, 2017 17 commits
  2. 15 Feb, 2017 2 commits
  3. 14 Feb, 2017 1 commit
  4. 10 Feb, 2017 1 commit
    • Damien George's avatar
      py/emitbc: Produce correct line number info for large bytecode chunks. · cc2dbdd1
      Damien George authored
      Previous to this patch, for large chunks of bytecode that originated from
      a single source-code line, the bytecode-line mapping would generate
      something like (for 42 bytecode bytes and 1 line):
      
        BC_SKIP=31  LINE_SKIP=1
        BC_SKIP=11  LINE_SKIP=0
      
      This would mean that any errors in the last 11 bytecode bytes would be
      reported on the following line.  This patch fixes it to generate instead:
      
        BC_SKIP=31  LINE_SKIP=0
        BC_SKIP=11  LINE_SKIP=1
      cc2dbdd1
  5. 09 Feb, 2017 1 commit
    • dmazzella's avatar
      py/objtype: Implement __delattr__ and __setattr__. · 18e65691
      dmazzella authored
      This patch implements support for class methods __delattr__ and __setattr__
      for customising attribute access.  It is controlled by the config option
      MICROPY_PY_DELATTR_SETATTR and is disabled by default.
      18e65691
  6. 08 Feb, 2017 2 commits
    • Dave Hylands's avatar
      py/nlr: Fix execstack builds for ARM. · aa34c553
      Dave Hylands authored
      It seems that the gcc toolchain on the RaspberryPi
      likes %progbits instead of @progbits. I verified that
      %progbits also works under x86, so this should
      fix #2848 and fix #2842
      
      I verified that unix and mpy-cross both compile
      on my RaspberryPi and on my x64 machine.
      aa34c553
    • Damien George's avatar
      py/map: Change mp_uint_t to size_t where appropriate. · af622eb2
      Damien George authored
      The internal map/set functions now use size_t exclusively for computing
      addresses.  size_t is enough to reach all of available memory when
      computing addresses so is the right type to use.  In particular, for
      nanbox builds it saves quite a bit of code size and RAM compared to the
      original use of mp_uint_t (which is 64-bits on nanbox builds).
      af622eb2
  7. 07 Feb, 2017 1 commit
  8. 03 Feb, 2017 4 commits
  9. 02 Feb, 2017 5 commits
  10. 01 Feb, 2017 2 commits
  11. 30 Jan, 2017 2 commits
  12. 29 Jan, 2017 1 commit
    • Paul Sokolovsky's avatar
      extmod/machine_signal: Implement "signal" abstraction for machine module. · 7a7516d4
      Paul Sokolovsky authored
      A signal is like a pin, but ca also be inverted (active low). As such, it
      abstracts properties of various physical devices, like LEDs, buttons,
      relays, buzzers, etc. To instantiate a Signal:
      
      pin = machine.Pin(...)
      signal = machine.Signal(pin, inverted=True)
      
      signal has the same .value() and __call__() methods as a pin.
      7a7516d4
  13. 27 Jan, 2017 1 commit