1. 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
  2. 22 Feb, 2014 1 commit
  3. 21 Feb, 2014 1 commit
  4. 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
  5. 12 Feb, 2014 1 commit
  6. 29 Jan, 2014 1 commit
  7. 25 Jan, 2014 2 commits
  8. 23 Jan, 2014 1 commit
  9. 21 Jan, 2014 1 commit
  10. 19 Jan, 2014 1 commit
  11. 18 Jan, 2014 1 commit
  12. 15 Jan, 2014 2 commits
  13. 12 Jan, 2014 2 commits
  14. 06 Jan, 2014 2 commits
  15. 30 Dec, 2013 1 commit
  16. 29 Dec, 2013 2 commits
  17. 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
  18. 02 Nov, 2013 1 commit
  19. 19 Oct, 2013 1 commit
  20. 18 Oct, 2013 1 commit
  21. 12 Oct, 2013 2 commits
  22. 09 Oct, 2013 1 commit
  23. 05 Oct, 2013 3 commits
  24. 04 Oct, 2013 1 commit