1. 05 Jul, 2014 1 commit
  2. 03 Jul, 2014 1 commit
  3. 10 Jun, 2014 1 commit
  4. 08 Jun, 2014 2 commits
  5. 07 Jun, 2014 1 commit
  6. 05 Jun, 2014 1 commit
  7. 03 Jun, 2014 1 commit
  8. 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
  9. 24 May, 2014 1 commit
  10. 21 May, 2014 4 commits
  11. 19 May, 2014 1 commit
    • 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
  12. 13 May, 2014 1 commit
  13. 11 May, 2014 3 commits
    • Damien George's avatar
      py: Use mp_arg_check_num in more places. · ee7a880d
      Damien George authored
      Updated functions now do proper checking that n_kw==0, and are simpler
      because they don't have to explicitly raise an exception.  Down side is
      that the error messages no longer include the function name, but that's
      acceptable.
      
      Saves order 300 text bytes on x64 and ARM.
      ee7a880d
    • Paul Sokolovsky's avatar
      objtuple: Go out of the way to support comparison of subclasses. · ea970809
      Paul Sokolovsky authored
      Two things are handled here: allow to compare native subtypes of tuple,
      e.g. namedtuple (TODO: should compare type too, currently compared
      duck-typedly by content). Secondly, allow user sunclasses of tuples
      (and its subtypes) be compared either. "Magic" I did previously in
      objtype.c covers only one argument (lhs is many), so we're in trouble
      when lhs is native type - there's no other option besides handling
      rhs in special manner. Fortunately, this patch outlines approach with
      fast path for native types.
      ea970809
    • Paul Sokolovsky's avatar
      py: Don't try to "bind" types store as attributes of objects. · 9511f60f
      Paul Sokolovsky authored
      This was hit when trying to make urlparse.py from stdlib run. Took
      quite some time to debug.
      
      TODO: Reconsile bound method creation process better, maybe callable is
      to generic type to bind at all?
      9511f60f
  14. 10 May, 2014 4 commits
  15. 03 May, 2014 2 commits
  16. 02 May, 2014 2 commits
  17. 01 May, 2014 2 commits
  18. 29 Apr, 2014 3 commits
  19. 25 Apr, 2014 1 commit
  20. 21 Apr, 2014 1 commit
  21. 17 Apr, 2014 2 commits
  22. 14 Apr, 2014 1 commit
  23. 13 Apr, 2014 1 commit
  24. 08 Apr, 2014 2 commits