1. 21 Sep, 2016 1 commit
  2. 12 Aug, 2016 1 commit
  3. 13 Apr, 2016 1 commit
    • pohmelie's avatar
      py: add async/await/async for/async with syntax · 81ebba7e
      pohmelie authored
      They are sugar for marking function as generator, "yield from"
      and pep492 python "semantically equivalents" respectively.
      
      @dpgeorge was the original author of this patch, but @pohmelie made
      changes to implement `async for` and `async with`.
      81ebba7e
  4. 12 Apr, 2016 1 commit
  5. 14 Mar, 2016 1 commit
  6. 11 Jan, 2016 2 commits
  7. 04 Jan, 2016 1 commit
  8. 03 Jan, 2016 2 commits
  9. 18 Dec, 2015 1 commit
    • Damien George's avatar
      py: Add MICROPY_ENABLE_COMPILER and MICROPY_PY_BUILTINS_EVAL_EXEC opts. · dd5353a4
      Damien George authored
      MICROPY_ENABLE_COMPILER can be used to enable/disable the entire compiler,
      which is useful when only loading of pre-compiled bytecode is supported.
      It is enabled by default.
      
      MICROPY_PY_BUILTINS_EVAL_EXEC controls support of eval and exec builtin
      functions.  By default they are only included if MICROPY_ENABLE_COMPILER
      is enabled.
      
      Disabling both options saves about 40k of code size on 32-bit x86.
      dd5353a4
  10. 07 Dec, 2015 2 commits
  11. 29 Nov, 2015 2 commits
  12. 23 Nov, 2015 1 commit
  13. 20 Oct, 2015 1 commit
  14. 17 Oct, 2015 1 commit
  15. 11 Oct, 2015 1 commit
  16. 30 Aug, 2015 1 commit
  17. 19 Aug, 2015 1 commit
  18. 19 Jul, 2015 1 commit
  19. 13 Jun, 2015 1 commit
  20. 05 Jun, 2015 1 commit
  21. 12 May, 2015 1 commit
    • Damien George's avatar
      py: Convert hash API to use MP_UNARY_OP_HASH instead of ad-hoc function. · c2a4e4ef
      Damien George authored
      Hashing is now done using mp_unary_op function with MP_UNARY_OP_HASH as
      the operator argument.  Hashing for int, str and bytes still go via
      fast-path in mp_unary_op since they are the most common objects which
      need to be hashed.
      
      This lead to quite a bit of code cleanup, and should be more efficient
      if anything.  It saves 176 bytes code space on Thumb2, and 360 bytes on
      x86.
      
      The only loss is that the error message "unhashable type" is now the
      more generic "unsupported type for __hash__".
      c2a4e4ef
  22. 05 May, 2015 1 commit
    • Paul Sokolovsky's avatar
      objsingleton: New home for Ellipsis and NotImplemented. · 76677270
      Paul Sokolovsky authored
      Having NotImplemented as MP_OBJ_SENTINEL turned out to be problematic
      (it needs to be checked for in a lot of places, otherwise it'll crash
      as would pass MP_OBJ_IS_OBJ()), so made a proper singleton value like
      Ellipsis, both of them sharing the same type.
      76677270
  23. 04 May, 2015 1 commit
  24. 20 Apr, 2015 1 commit
  25. 19 Apr, 2015 1 commit
  26. 16 Apr, 2015 3 commits
    • Damien George's avatar
    • Damien George's avatar
      py: Make mp_sys_stdout_print object, wrapping sys.stdout for mp_print*. · 5ae5ec98
      Damien George authored
      So now all printing should go via either mp_plat_print or
      mp_sys_stdout_print.
      5ae5ec98
    • Damien George's avatar
      py: Overhaul and simplify printf/pfenv mechanism. · 7f9d1d6a
      Damien George authored
      Previous to this patch the printing mechanism was a bit of a tangled
      mess.  This patch attempts to consolidate printing into one interface.
      
      All (non-debug) printing now uses the mp_print* family of functions,
      mainly mp_printf.  All these functions take an mp_print_t structure as
      their first argument, and this structure defines the printing backend
      through the "print_strn" function of said structure.
      
      Printing from the uPy core can reach the platform-defined print code via
      two paths: either through mp_sys_stdout_obj (defined pert port) in
      conjunction with mp_stream_write; or through the mp_plat_print structure
      which uses the MP_PLAT_PRINT_STRN macro to define how string are printed
      on the platform.  The former is only used when MICROPY_PY_IO is defined.
      
      With this new scheme printing is generally more efficient (less layers
      to go through, less arguments to pass), and, given an mp_print_t*
      structure, one can call mp_print_str for efficiency instead of
      mp_printf("%s", ...).  Code size is also reduced by around 200 bytes on
      Thumb2 archs.
      7f9d1d6a
  27. 09 Apr, 2015 1 commit
  28. 06 Apr, 2015 2 commits
  29. 30 Mar, 2015 1 commit
  30. 19 Mar, 2015 1 commit
  31. 14 Mar, 2015 1 commit
  32. 02 Mar, 2015 1 commit
  33. 23 Feb, 2015 1 commit