1. 11 Oct, 2015 1 commit
  2. 04 Sep, 2015 1 commit
  3. 03 Sep, 2015 1 commit
  4. 06 Jun, 2015 1 commit
  5. 20 Jul, 2015 2 commits
  6. 02 Jul, 2015 1 commit
  7. 17 May, 2015 1 commit
  8. 16 Apr, 2015 1 commit
    • 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_pr...
      7f9d1d6a
  9. 15 Apr, 2015 1 commit
  10. 19 Mar, 2015 1 commit
  11. 06 Mar, 2015 1 commit
  12. 04 Mar, 2015 1 commit
  13. 03 Mar, 2015 1 commit
  14. 27 Feb, 2015 2 commits
    • Paul Sokolovsky's avatar
      objarray: Implement array slice assignment. · cefcbb22
      Paul Sokolovsky authored
      This is rarely used feature which takes enough code to implement, so is
      controlled by MICROPY_PY_ARRAY_SLICE_ASSIGN config setting, default off.
      But otherwise it may be useful, as allows to update arbitrary-sized data
      buffers in-place.
      
      Slice is yet to implement, and actually, slice assignment implemented in
      such a way that RHS of assignment should be array of the exact same item
      typecode as LHS. CPython has it more relaxed, where RHS can be any sequence
      of compatible types (e.g. it's possible to assign list of int's to a
      bytearray slice).
      
      Overall, when all "slice write" features are implemented, it may cost ~1KB
      of code.
      cefcbb22
    • Damien George's avatar
      py: Use m_{new,renew,del} consistently. · 4d77e1a0
      Damien George authored
      This is so all memory requests go through the same interface.
      4d77e1a0
  15. 20 Jan, 2015 1 commit
  16. 04 Jan, 2015 1 commit
  17. 01 Jan, 2015 1 commit
  18. 04 Dec, 2014 1 commit
  19. 30 Nov, 2014 2 commits
  20. 29 Oct, 2014 1 commit
  21. 26 Oct, 2014 1 commit
  22. 23 Oct, 2014 1 commit
  23. 03 Oct, 2014 1 commit
  24. 30 Aug, 2014 3 commits
  25. 29 Aug, 2014 1 commit
  26. 10 Aug, 2014 1 commit
  27. 17 Jul, 2014 1 commit
  28. 03 Jul, 2014 1 commit
  29. 27 Jun, 2014 1 commit
  30. 13 Jun, 2014 1 commit
    • Paul Sokolovsky's avatar
      objstr: Be 8-bit clean even for repr(). · 2ec38a17
      Paul Sokolovsky authored
      This will allow roughly the same behavior as Python3 for non-ASCII strings,
      for example, print("<phrase in non-Latin script>".split()) will print list
      of words, not weird hex dump (like Python2 behaves). (Of course, that it
      will print list of words, if there're "words" in that phrase at all, separated
      by ASCII-compatible whitespace; that surely won't apply to every human
      language in existence).
      2ec38a17
  31. 05 Jun, 2014 1 commit
    • Damien George's avatar
      py: Small changes to objstr.c, including a bug fix. · 11de8399
      Damien George authored
      Some small fixed:
      
      - Combine 'x' and 'X' cases in str format code.
      
      - Remove trailing spaces from some lines.
      
      - Make exception messages consistently begin with lower case (then
      needed to change those in objarray and objtuple so the same
      constant string data could be used).
      
      - Fix bug with exception message having %c instead of %%c.
      11de8399
  32. 01 Jun, 2014 1 commit
  33. 25 May, 2014 2 commits
  34. 21 May, 2014 1 commit