1. 07 Jan, 2015 1 commit
  2. 03 Jan, 2015 1 commit
  3. 01 Jan, 2015 3 commits
  4. 29 Dec, 2014 1 commit
  5. 27 Dec, 2014 2 commits
  6. 23 Dec, 2014 1 commit
  7. 18 Dec, 2014 1 commit
  8. 16 Dec, 2014 1 commit
  9. 15 Dec, 2014 2 commits
  10. 14 Dec, 2014 1 commit
  11. 10 Dec, 2014 2 commits
  12. 09 Dec, 2014 1 commit
    • Damien George's avatar
      py: Allow builtins to be overridden. · 78d702c3
      Damien George authored
      This patch adds a configuration option (MICROPY_CAN_OVERRIDE_BUILTINS)
      which, when enabled, allows to override all names within the builtins
      module.  A builtins override dict is created the first time the user
      assigns to a name in the builtins model, and then that dict is searched
      first on subsequent lookups.  Note that this implementation doesn't
      allow deleting of names.
      
      This patch also does some refactoring of builtins code, creating the
      modbuiltins.c file.
      
      Addresses issue #959.
      78d702c3
  13. 08 Dec, 2014 1 commit
    • Paul Sokolovsky's avatar
      modsys: Add sys.print_exception(exc, file=sys.stdout) function. · 46c3ab20
      Paul Sokolovsky authored
      The function is modeled after traceback.print_exception(), but unbloated,
      and put into existing module to save overhead on adding another module.
      Compliant traceback.print_exception() is intended to be implemented in
      micropython-lib in terms of sys.print_exception().
      
      This change required refactoring mp_obj_print_exception() to take pfenv_t
      interface arguments.
      
      Addresses #751.
      46c3ab20
  14. 05 Dec, 2014 2 commits
    • Damien George's avatar
      py: Rename mp_obj_int_get to mp_obj_int_get_truncated; fix struct.pack. · be6d8be9
      Damien George authored
      mp_obj_int_get_truncated is used as a "fast path" int accessor that
      doesn't check for overflow and returns the int truncated to the machine
      word size, ie mp_int_t.
      
      Use mp_obj_int_get_truncated to fix struct.pack when packing maximum word
      sized values.
      
      Addresses issues #779 and #998.
      be6d8be9
    • Damien George's avatar
      py: Optimise lexer by exposing lexer type. · a4c52c5a
      Damien George authored
      mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer
      functions (like checking current token kind) are now inlined.
      
      This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460
      bytes on bare-arm.  It also saves a tiny bit of RAM since mp_lexer_t
      is a bit smaller.  Also will run a bit more efficiently.
      a4c52c5a
  15. 01 Dec, 2014 1 commit
  16. 29 Nov, 2014 2 commits
  17. 22 Nov, 2014 1 commit
  18. 16 Nov, 2014 2 commits
  19. 05 Nov, 2014 1 commit
  20. 04 Nov, 2014 1 commit
  21. 02 Nov, 2014 1 commit
    • Paul Sokolovsky's avatar
      unix: Provide "fast" target to build interpreter for benchmarking. · 1060baa2
      Paul Sokolovsky authored
      This build is primarily intended for benchmarking, and may have random
      features enabled/disabled to get high scores in synthetic benchmarks.
      The intent is to show/prove that MicroPython codebase can compete with
      CPython, when configured appropriately. But the main MicroPython aim
      still remains to optimize for memory usage (which inevitibly leads to
      performance degradation in some areas on some workloads).
      1060baa2
  22. 31 Oct, 2014 1 commit
  23. 29 Oct, 2014 1 commit
  24. 26 Oct, 2014 2 commits
  25. 25 Oct, 2014 4 commits
  26. 24 Oct, 2014 1 commit
  27. 23 Oct, 2014 1 commit
  28. 22 Oct, 2014 1 commit