Dave Hylands
|
64ef5d7f4e
|
Change pfenv_print_int to take machine_uint_t rather than unsinged in
With this change, the following works:
>>> print('%#x' % 0x1234567890abcdef)
0x1234567890abcdef
|
2014-04-05 09:42:20 -07:00 |
|
Dave Hylands
|
f81a49e464
|
Allow floating point arguments with %d,i,u,o,x,X formats
|
2014-04-05 08:26:51 -07:00 |
|
Paul Sokolovsky
|
a0d32991ed
|
mp_load_name(): Optimize for outer scope where locals == globals.
|
2014-04-05 05:10:12 +03:00 |
|
Paul Sokolovsky
|
e3f58c8380
|
map: Add mp_map_dump() (#ifdef'ed) to be handy when debugging maps.
|
2014-04-05 05:10:02 +03:00 |
|
Damien George
|
6582a4170d
|
Merge pull request #421 from dhylands/git-version
Add the git version and build-date to the banner
|
2014-04-04 16:09:29 +01:00 |
|
Damien George
|
e8208a7f02
|
py: Make False and True act like 0 and 1 for integer arithmetic.
|
2014-04-04 15:08:23 +01:00 |
|
Damien George
|
d7aadcfe1b
|
py: Allow dict constructor to take keyword arguments.
|
2014-04-04 15:08:00 +01:00 |
|
Damien George
|
36f0ee1a54
|
py: Remove mp_obj_less (use mp_binary_op(MP_BINARY_OP_LESS..) instead).
|
2014-04-04 15:07:17 +01:00 |
|
Damien George
|
9b1599c663
|
Merge pull request #422 from dhylands/str-modulo
Str modulo
|
2014-04-04 12:37:52 +01:00 |
|
Damien George
|
af27259439
|
py: Enable optimisation of multiplying 2 small ints in compiler.
|
2014-04-04 11:21:58 +00:00 |
|
Damien George
|
ecf5b77123
|
py: This time, real proper overflow checking of small int power.
Previous overflow test was inadequate.
|
2014-04-04 11:13:51 +00:00 |
|
Damien George
|
6902eeda25
|
py: Add m_malloc_fail function to handle memory allocation error.
A malloc/realloc fail now throws MemoryError.
|
2014-04-04 10:52:59 +00:00 |
|
Dave Hylands
|
6756a37a77
|
Implements most of str.modulo
The alternate form for floating point doesn't work yet.
The %(name)s form doesn't work yet.
|
2014-04-03 23:55:02 -07:00 |
|
Dave Hylands
|
bf7d690e36
|
Add the git version to the banner
|
2014-04-03 16:55:15 -07:00 |
|
Damien George
|
5bf565e353
|
py: Handle small int power overflow correctly.
|
2014-04-04 00:16:32 +01:00 |
|
Damien George
|
4b34c76fd6
|
Changes to get unix/ port compiling on Cygwin.
|
2014-04-03 23:51:16 +01:00 |
|
Paul Sokolovsky
|
98a627dc03
|
py: Add "io" module.
So far just includes "open" function, which should be supplied by a port.
TODO: Make the module #ifdef'ed.
|
2014-04-03 22:08:57 +03:00 |
|
Damien George
|
8270e3853d
|
py: More robust int conversion and overflow checking.
|
2014-04-03 11:00:54 +00:00 |
|
Damien George
|
cc7085c1ce
|
Merge branch 'fix-format-int' of github.com:dhylands/micropython into dhylands-fix-format-int
Conflicts:
py/objstr.c
|
2014-04-02 20:37:05 +01:00 |
|
Dave Hylands
|
22fe4d7344
|
Fix str.format to work with {:f/g/e} and ints
Also fix objstr.c to compile when floats disabled.
|
2014-04-02 12:10:18 -07:00 |
|
Damien George
|
c322c5f07f
|
py: Fix regress for printing of floats and #if.
Also change formating modifier in test script (it still passes with
original format though).
|
2014-04-02 20:04:15 +01:00 |
|
Paul Sokolovsky
|
e807fa8d60
|
gc: Uses uint defined in misc.h.
|
2014-04-02 20:36:32 +03:00 |
|
Damien George
|
094d450003
|
py: Wrap compile_scope_inline_asm in #if; remove comment from misc.h.
|
2014-04-02 17:31:27 +01:00 |
|
Damien George
|
70f33cde48
|
py: Fix up so that it can compile without float.
|
2014-04-02 17:06:05 +01:00 |
|
Damien George
|
af6edc61bd
|
py: Enable a jump optimisation in the compiler.
|
2014-04-02 16:12:28 +01:00 |
|