1. 11 Apr, 2014 1 commit
  2. 10 Apr, 2014 1 commit
    • Paul Sokolovsky's avatar
      py: Start implementing "struct" module. · e9db8404
      Paul Sokolovsky authored
      Only calcsize() and unpack() functions provided so far, for little-endian
      byte order. Format strings don't support repition spec (like "2b3i").
      
      Unfortunately, dealing with all the various binary type sizes and alignments
      will lead to quite a bloated "binary" helper functions  - if optimizing for
      speed. Need to think if using dynamic parametrized algos makes more sense.
      e9db8404
  3. 08 Apr, 2014 2 commits
  4. 05 Apr, 2014 3 commits
  5. 03 Apr, 2014 1 commit
    • Paul Sokolovsky's avatar
      py: Add "io" module. · 98a627dc
      Paul Sokolovsky authored
      So far just includes "open" function, which should be supplied by a port.
      
      TODO: Make the module #ifdef'ed.
      98a627dc
  6. 02 Apr, 2014 1 commit
  7. 31 Mar, 2014 1 commit
    • 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
  8. 29 Mar, 2014 1 commit
  9. 26 Mar, 2014 3 commits
  10. 25 Mar, 2014 1 commit
  11. 24 Mar, 2014 1 commit
  12. 22 Mar, 2014 4 commits
  13. 20 Mar, 2014 3 commits
  14. 16 Mar, 2014 1 commit
  15. 12 Mar, 2014 1 commit
  16. 08 Mar, 2014 1 commit
    • Damien George's avatar
      Implement ROMable modules. Add math module. · 0c36da0b
      Damien George authored
      mp_module_obj_t can now be put in ROM.
      
      Configuration of float type is now similar to longint: can now choose
      none, float or double as the implementation.
      
      math module has basic math functions.  For STM port, these are not yet
      implemented (they are just stub functions).
      0c36da0b
  17. 03 Mar, 2014 1 commit
  18. 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
  19. 09 Feb, 2014 1 commit
  20. 08 Feb, 2014 1 commit
  21. 06 Feb, 2014 1 commit
  22. 05 Feb, 2014 1 commit
  23. 04 Feb, 2014 3 commits
  24. 03 Feb, 2014 2 commits
  25. 02 Feb, 2014 2 commits