1. 12 Aug, 2014 2 commits
  2. 19 Jul, 2014 1 commit
  3. 09 Jul, 2014 1 commit
  4. 26 Jun, 2014 2 commits
  5. 05 May, 2014 1 commit
  6. 26 Apr, 2014 1 commit
  7. 23 Apr, 2014 1 commit
  8. 19 Apr, 2014 1 commit
    • Damien George's avatar
      py: Add arg checking helper functions. · a3f94e00
      Damien George authored
      These are to assist in writing native C functions that take positional
      and keyword arguments.  mp_arg_check_num is for just checking the
      number of arguments is correct.  mp_arg_parse_all is for parsing
      positional and keyword arguments with default values.
      a3f94e00
  9. 17 Apr, 2014 2 commits
  10. 16 Apr, 2014 2 commits
    • Paul Sokolovsky's avatar
      nlr: Add implementation using setjmp/longjmp. · 3a83b805
      Paul Sokolovsky authored
      Having an optimized asm implementation is good, but if we want portability,
      that's it.
      3a83b805
    • Andrew Scheller's avatar
      build directory can now be renamed · 70a7d7a9
      Andrew Scheller authored
      The autogenerated header files have been moved about, and an extra
      include dir has been added, which means you can give a custom
      BUILD=newbuilddir option to make, and everything "just works"
      
      Also tidied up the way the different Makefiles build their include-
      directory flags
      70a7d7a9
  11. 13 Apr, 2014 3 commits
  12. 11 Apr, 2014 1 commit
  13. 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
  14. 07 Apr, 2014 1 commit
  15. 04 Apr, 2014 1 commit
  16. 03 Apr, 2014 2 commits
  17. 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
  18. 27 Mar, 2014 1 commit
  19. 25 Mar, 2014 1 commit
  20. 22 Mar, 2014 2 commits
  21. 10 Mar, 2014 2 commits
  22. 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
  23. 03 Mar, 2014 1 commit
  24. 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
  25. 22 Feb, 2014 2 commits
  26. 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
  27. 14 Feb, 2014 1 commit
  28. 03 Feb, 2014 1 commit
  29. 30 Jan, 2014 1 commit
  30. 25 Jan, 2014 1 commit