1. 10 May, 2018 1 commit
    • Damien George's avatar
      py/runtime: Add mp_load_method_protected helper which catches exceptions · bc87b862
      Damien George authored
      This new helper function acts like mp_load_method_maybe but is wrapped in
      an NLR handler so it can catch exceptions.  It prevents AttributeError from
      propagating out, and optionally all other exceptions.  This helper can be
      used to fully implement hasattr (see follow-up commit), and also for cases
      where mp_load_method_maybe is used but it must now raise an exception.
      bc87b862
  2. 09 May, 2018 4 commits
  3. 08 May, 2018 1 commit
    • Damien George's avatar
      tests/cpydiff: Remove types_int_tobytesfloat now that it doesn't fail. · 2ada1124
      Damien George authored
      Commit e269cabe added a check that the
      first argument to the to_bytes() method is an integer, and now uPy
      follows CPython behaviour and raises a TypeError for this test.
      
      Note: CPython checks the argument types before checking the number of
      arguments, but uPy does it the other way around, so they give different
      exception messages for this test, but still the same type, a TypeError.
      2ada1124
  4. 04 May, 2018 8 commits
  5. 02 May, 2018 19 commits
  6. 01 May, 2018 7 commits