1. 13 Apr, 2014 1 commit
  2. 11 Apr, 2014 1 commit
  3. 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
  4. 07 Apr, 2014 1 commit
  5. 04 Apr, 2014 1 commit
  6. 03 Apr, 2014 2 commits
  7. 01 Apr, 2014 1 commit
    • Dave Hylands's avatar
      Enhance str.format support · baf6f14d
      Dave Hylands authored
      This adds support for almost everything (the comma isn't currently
      supported).
      
      The "unspecified" type with floats also doesn't behave exactly like
      python.
      
      Tested under unix with float and double
      Spot tested on stmhal
      baf6f14d
  8. 27 Mar, 2014 1 commit
  9. 25 Mar, 2014 1 commit
  10. 22 Mar, 2014 2 commits
  11. 10 Mar, 2014 2 commits
  12. 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
  13. 03 Mar, 2014 1 commit
  14. 01 Mar, 2014 1 commit
    • Damien George's avatar
      py: Implement bit-shift and not operations for mpz. · 06201ff3
      Damien George authored
      Implement not, shl and shr in mpz library.  Add function to create mpzs
      on the stack, used for memory efficiency when rhs is a small int.
      Factor out code to parse base-prefix of number into a dedicated function.
      06201ff3
  15. 22 Feb, 2014 2 commits
  16. 15 Feb, 2014 1 commit
    • 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
  17. 14 Feb, 2014 1 commit
  18. 03 Feb, 2014 1 commit
  19. 30 Jan, 2014 1 commit
  20. 25 Jan, 2014 2 commits
  21. 24 Jan, 2014 1 commit
  22. 21 Jan, 2014 1 commit
  23. 20 Jan, 2014 2 commits
  24. 18 Jan, 2014 1 commit
  25. 17 Jan, 2014 1 commit
  26. 15 Jan, 2014 3 commits
  27. 14 Jan, 2014 2 commits
  28. 13 Jan, 2014 1 commit
  29. 09 Jan, 2014 1 commit
  30. 08 Jan, 2014 2 commits