1. 25 Apr, 2014 1 commit
  2. 21 Apr, 2014 1 commit
  3. 17 Apr, 2014 2 commits
  4. 14 Apr, 2014 1 commit
  5. 13 Apr, 2014 1 commit
  6. 08 Apr, 2014 2 commits
  7. 05 Apr, 2014 3 commits
  8. 02 Apr, 2014 1 commit
  9. 31 Mar, 2014 3 commits
    • Damien George's avatar
      py: Implement __getattr__. · e44d26ae
      Damien George authored
      It's not completely satisfactory, because a failed call to __getattr__
      should not raise an exception.
      
      __setattr__ could be implemented, but it would slow down all stores to a
      user created object.  Need to implement some caching system.
      e44d26ae
    • Paul Sokolovsky's avatar
      objtype: Wrap .__name__ handling in MICROPY_CPYTHON_COMPAT. · b509f739
      Paul Sokolovsky authored
      Because it's runtime reflection feature, not required for many apps.
      Rant time:
      Python could really use better str() vs repr() distinction, for example,
      repr(type) could be "<class 'foo'>" (as it is now), and str(type) just
      "foo". But alas, getting straight name requires adhoc attribute.
      b509f739
    • Paul Sokolovsky's avatar
      objtype: Add virtual __name__ attribute. · e5666701
      Paul Sokolovsky authored
      It's virtual because it's not shown in dir(...). (That's also how CPython
      has it).
      e5666701
  10. 30 Mar, 2014 2 commits
    • Damien George's avatar
      Merge map.h into obj.h. · df6567e6
      Damien George authored
      Pretty much everyone needs to include map.h, since it's such an integral
      part of the Micro Python object implementation.  Thus, the definitions
      are now in obj.h instead.  map.h is removed.
      df6567e6
    • Damien George's avatar
      Rename rt_* to mp_*. · d17926db
      Damien George authored
      Mostly just a global search and replace.  Except rt_is_true which
      becomes mp_obj_is_true.
      
      Still would like to tidy up some of the names, but this will do for now.
      d17926db
  11. 29 Mar, 2014 2 commits
  12. 27 Mar, 2014 1 commit
  13. 26 Mar, 2014 4 commits
  14. 17 Mar, 2014 1 commit
    • xbe's avatar
      py: Clean up includes. · efe34223
      xbe authored
      Remove unnecessary includes. Add includes that improve portability.
      efe34223
  15. 16 Mar, 2014 1 commit
  16. 03 Mar, 2014 2 commits
  17. 15 Feb, 2014 2 commits
    • Damien George's avatar
      Implement proper exception type hierarchy. · c5966128
      Damien George authored
      Each built-in exception is now a type, with base type BaseException.
      C exceptions are created by passing a pointer to the exception type to
      make an instance of.  When raising an exception from the VM, an
      instance is created automatically if an exception type is raised (as
      opposed to an exception instance).
      
      Exception matching (RT_BINARY_OP_EXCEPTION_MATCH) is now proper.
      
      Handling of parse error changed to match new exceptions.
      
      mp_const_type renamed to mp_type_type for consistency.
      c5966128
    • Damien George's avatar
      Change mp_obj_type_t.name from const char * to qstr. · a71c83a1
      Damien George authored
      Ultimately all static strings should be qstr.  This entry in the type
      structure is only used for printing error messages (to tell the type of
      the bad argument), and printing objects that don't supply a .print method.
      a71c83a1
  18. 12 Feb, 2014 2 commits
  19. 08 Feb, 2014 1 commit
  20. 06 Feb, 2014 1 commit
  21. 05 Feb, 2014 2 commits
  22. 02 Feb, 2014 2 commits
  23. 01 Feb, 2014 1 commit
  24. 30 Jan, 2014 1 commit