1. 31 Oct, 2017 2 commits
  2. 30 Oct, 2017 6 commits
  3. 29 Oct, 2017 1 commit
  4. 28 Oct, 2017 1 commit
    • Paul Sokolovsky's avatar
      unix: Enable MICROPY_PY_REVERSE_SPECIAL_METHODS. · 24c8eda7
      Paul Sokolovsky authored
      With inplace methods now disabled by default, it makes sense to enable
      reverse methods, as they allow for more useful features, e.g. allow
      for datetime module to implement both 2 * HOUR and HOUR * 2 (where
      HOUR is e.g. timedelta object).
      24c8eda7
  5. 27 Oct, 2017 4 commits
    • Paul Sokolovsky's avatar
      py/objtype: Introduce MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS. · 0e80f345
      Paul Sokolovsky authored
      This allows to configure support for inplace special methods separately,
      similar to "normal" and reverse special methods. This is useful, because
      inplace methods are "the most optional" ones, for example, if inplace
      methods aren't defined, the operation will be executed using normal
      methods instead.
      
      As a caveat, __iadd__ and __isub__ are implemented even if
      MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS isn't defined. This is similar
      to the state of affairs before binary operations refactor, and allows
      to run existing tests even if MICROPY_PY_ALL_INPLACE_SPECIAL_METHODS
      isn't defined.
      0e80f345
    • Paul Sokolovsky's avatar
      py/objtype: Define all special methods if requested. · 9b9dbc58
      Paul Sokolovsky authored
      If MICROPY_PY_ALL_SPECIAL_METHODS is defined, actually define all special
      methods (still subject to gating by e.g. MICROPY_PY_REVERSE_SPECIAL_METHODS).
      
      This adds quite a number of qstr's, so should be used sparingly.
      9b9dbc58
    • Joar Wandborg's avatar
      docs/library/network: Add dhcp_hostname parameter · b9923262
      Joar Wandborg authored
      I have not actually tested this, going by information available in https://forum.micropython.org/viewtopic.php?t=2584
      b9923262
    • Damien George's avatar
      extmod/vfs: Replace VLA in proxy func with small, static sized array. · c64eb4f8
      Damien George authored
      VLAs can be expensive on stack usage due to stack alignment requirements,
      and also the fact that extra local variables are needed to track the
      dynamic size of the stack.  So using fixed-size arrays when possible can
      help to reduce code size and stack usage.
      
      In this particular case, the maximum value of n_args in the VLA is 2 and so
      it's more efficient to just allocate this array with a fixed size.  This
      reduces code size by around 30 bytes on Thumb2 and Xtensa archs.  It also
      reduces total stack usage of the function: on Thumb2 the usage with VLA is
      between 40 and 48 bytes, which is reduced to 32; on Xtensa, VLA usage is
      between 64 and 80 bytes, reduced to 32; on x86-64 it's at least 88 bytes
      reduced to 80.
      c64eb4f8
  6. 26 Oct, 2017 3 commits
  7. 25 Oct, 2017 1 commit
  8. 24 Oct, 2017 2 commits
  9. 23 Oct, 2017 1 commit
  10. 21 Oct, 2017 1 commit
  11. 19 Oct, 2017 6 commits
  12. 17 Oct, 2017 2 commits
  13. 16 Oct, 2017 9 commits
  14. 15 Oct, 2017 1 commit