1. 29 Dec, 2014 1 commit
    • Paul Sokolovsky's avatar
      py: Partially fix float to int conversion. · 12033df5
      Paul Sokolovsky authored
      This fixes conversion when float type has more mantissa bits than small int,
      and float value has small exponent. This is for example the case of 32-bit
      platform using doubles, and converting value of time.time(). Conversion of
      floats with larg exponnet is still not handled correctly.
      12033df5
  2. 05 Dec, 2014 1 commit
  3. 10 Sep, 2014 1 commit
  4. 06 Sep, 2014 1 commit
  5. 29 Aug, 2014 1 commit
  6. 24 Jul, 2014 1 commit
  7. 03 Jul, 2014 2 commits
  8. 01 Jun, 2014 1 commit
    • Damien George's avatar
      Rename bultins config variables to MICROPY_PY_BUILTINS_*. · fb510b3b
      Damien George authored
      This renames:
      MICROPY_PY_FROZENSET -> MICROPY_PY_BUILTINS_FROZENSET
      MICROPY_PY_PROPERTY -> MICROPY_PY_BUILTINS_PROPERTY
      MICROPY_PY_SLICE -> MICROPY_PY_BUILTINS_SLICE
      MICROPY_ENABLE_FLOAT -> MICROPY_PY_BUILTINS_FLOAT
      
      See issue #35 for discussion.
      fb510b3b
  9. 28 May, 2014 2 commits
  10. 21 May, 2014 1 commit
  11. 17 May, 2014 1 commit
  12. 13 May, 2014 1 commit
  13. 07 May, 2014 1 commit
  14. 03 May, 2014 1 commit
    • Damien George's avatar
      Add license header to (almost) all files. · 04b9147e
      Damien George authored
      Blanket wide to all .c and .h files.  Some files originating from ST are
      difficult to deal with (license wise) so it was left out of those.
      
      Also merged modpyb.h, modos.h, modstm.h and modtime.h in stmhal/.
      04b9147e
  15. 02 May, 2014 1 commit
  16. 17 Apr, 2014 1 commit
  17. 11 Apr, 2014 1 commit
  18. 08 Apr, 2014 1 commit
    • Damien George's avatar
      py: Make it so that printing a small int does not allocate heap memory. · 88d7bba9
      Damien George authored
      With the implementation of proper string formatting, code to print a
      small int was delegated to mpz_as_str_inpl (after first converting the
      small int to an mpz using stack memory).  But mpz_as_str_inpl allocates
      heap memory to do the conversion, so small ints needed heap memory just
      to be printed.
      
      This fix has a separate function to print small ints, which does not
      allocate heap, and allocates less stack.
      
      String formatting, printf and pfenv are now large beasts, with some
      semi-duplicated code.
      88d7bba9
  19. 07 Apr, 2014 1 commit
  20. 05 Apr, 2014 1 commit
  21. 04 Apr, 2014 1 commit
  22. 02 Apr, 2014 1 commit
  23. 30 Mar, 2014 1 commit
    • Damien George's avatar
      Rename rt_* to mp_*. · d17926db
      Damien George authored
      Mostly just a global search and replace.  Except rt_is_true which
      becomes mp_obj_is_true.
      
      Still would like to tidy up some of the names, but this will do for now.
      d17926db
  24. 29 Mar, 2014 1 commit
  25. 22 Mar, 2014 1 commit
  26. 20 Mar, 2014 1 commit
  27. 19 Mar, 2014 1 commit
  28. 17 Mar, 2014 1 commit
    • xbe's avatar
      py: Clean up includes. · efe34223
      xbe authored
      Remove unnecessary includes. Add includes that improve portability.
      efe34223
  29. 22 Feb, 2014 2 commits
  30. 17 Feb, 2014 1 commit
  31. 14 Feb, 2014 1 commit
  32. 12 Feb, 2014 1 commit
  33. 01 Feb, 2014 1 commit
  34. 30 Jan, 2014 1 commit
  35. 27 Jan, 2014 1 commit
  36. 22 Jan, 2014 1 commit
  37. 21 Jan, 2014 1 commit