1. 21 Jan, 2015 1 commit
  2. 12 Jan, 2015 1 commit
  3. 04 Jan, 2015 1 commit
  4. 03 Jan, 2015 1 commit
  5. 01 Jan, 2015 1 commit
  6. 27 Dec, 2014 1 commit
    • Damien George's avatar
      py: Allow to properly disable builtin "set" object. · e37dcaaf
      Damien George authored
      This patch makes MICROPY_PY_BUILTINS_SET compile-time option fully
      disable the builtin set object (when set to 0).  This includes removing
      set constructor/comprehension from the grammar, the compiler and the
      emitters.  Now, enabling set costs 8168 bytes on unix x64, and 3576
      bytes on stmhal.
      e37dcaaf
  7. 19 Dec, 2014 1 commit
  8. 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
  9. 27 Nov, 2014 1 commit
  10. 06 Nov, 2014 1 commit
  11. 31 Oct, 2014 1 commit
  12. 22 Oct, 2014 1 commit
  13. 03 Oct, 2014 1 commit
  14. 13 Sep, 2014 2 commits
  15. 07 Sep, 2014 1 commit
  16. 30 Aug, 2014 2 commits
  17. 24 Aug, 2014 1 commit
  18. 12 Aug, 2014 2 commits
  19. 31 Jul, 2014 1 commit
    • Damien George's avatar
      py: Improve handling of long-int overflow. · c9aa58e6
      Damien George authored
      This removes mpz_as_int, since that was a terrible function (it
      implemented saturating conversion).
      
      Use mpz_as_int_checked and mpz_as_uint_checked.  These now work
      correctly (they previously had wrong overflow checking, eg
      print(chr(10000000000000)) on 32-bit machine would incorrectly convert
      this large number to a small int).
      c9aa58e6
  20. 28 Jul, 2014 1 commit
    • Paul Sokolovsky's avatar
      py: Make id() return small int for the most common address space mapping. · 645582fe
      Paul Sokolovsky authored
      Many OSes/CPUs have affinity to put "user" data into lower half of address
      space. Take advantage of that and remap such addresses into full small int
      range (including negative part).
      
      If address is from upper half, long int will be used. Previously, small
      int was returned for lower quarter of address space, and upper quarter. For
      2 middle quarters, long int was used, which is clearly worse schedule than
      the above.
      645582fe
  21. 19 Jul, 2014 1 commit
  22. 03 Jul, 2014 1 commit
  23. 28 Jun, 2014 2 commits
  24. 26 Jun, 2014 2 commits
  25. 20 Jun, 2014 1 commit
  26. 19 Jun, 2014 1 commit
  27. 07 Jun, 2014 1 commit
  28. 05 Jun, 2014 1 commit
  29. 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
  30. 25 May, 2014 1 commit
  31. 11 May, 2014 1 commit
  32. 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
  33. 02 May, 2014 1 commit
  34. 01 May, 2014 1 commit
  35. 26 Apr, 2014 1 commit