1. 13 Apr, 2014 3 commits
  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. 05 Apr, 2014 2 commits
  4. 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
  5. 26 Mar, 2014 1 commit
  6. 25 Mar, 2014 1 commit
  7. 24 Mar, 2014 1 commit
  8. 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
  9. 03 Mar, 2014 1 commit
  10. 03 Feb, 2014 2 commits
  11. 02 Feb, 2014 2 commits
  12. 20 Jan, 2014 3 commits
  13. 15 Jan, 2014 3 commits
  14. 13 Jan, 2014 2 commits
  15. 09 Jan, 2014 1 commit
  16. 08 Jan, 2014 1 commit
  17. 02 Jan, 2014 1 commit
  18. 01 Jan, 2014 1 commit
  19. 21 Dec, 2013 1 commit
    • Damien's avatar
      Change object representation from 1 big union to individual structs. · d99b0528
      Damien authored
      A big change.  Micro Python objects are allocated as individual structs
      with the first element being a pointer to the type information (which
      is itself an object).  This scheme follows CPython.  Much more flexible,
      not necessarily slower, uses same heap memory, and can allocate objects
      statically.
      
      Also change name prefix, from py_ to mp_ (mp for Micro Python).
      d99b0528
  20. 17 Dec, 2013 2 commits