-
080d99b7a8
py: Optimize locals()/globals() implementation.
Paul Sokolovsky
2014-04-06 01:18:19 +03:00
-
-
09af5364d4
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-04-05 23:04:22 +01:00
-
-
27e735fd18
py: Replace stream_p with *stream_p in mp_obj_type_t.
Damien George
2014-04-05 23:02:23 +01:00
-
cc0af3d727
py: Implement globals() and locals() builtins.
Paul Sokolovsky
2014-04-06 01:00:46 +03:00
-
-
17520224fa
py: Make all objects and instances derive from object.
Damien George
2014-04-05 22:45:23 +01:00
-
7efc5b3f34
py: Make globals and locals proper dictionary objects.
Damien George
2014-04-05 22:36:42 +01:00
-
8b0535e23f
py: Change module globals from mp_map_t* to mp_obj_dict_t*.
Damien George
2014-04-05 21:53:54 +01:00
-
60be1cf3b9
py: Fix float printing on stmhal.
Damien George
2014-04-05 20:51:29 +01:00
-
12bab72d93
Improve GC finalisation code; add option to disable it.
Damien George
2014-04-05 20:35:48 +01:00
-
8123a3339d
Merge pull request #425 from iabdalkader/del
Damien George
2014-04-05 18:49:39 +01:00
-
-
ea13f407a3
py: Change nlr_jump to nlr_raise, to aid in debugging.
Damien George
2014-04-05 18:32:08 +01:00
-
2a037408af
tests: Add test to check issue #429.
Damien George
2014-04-05 18:17:51 +01:00
-
efccbf6f27
Merge pull request #436 from dhylands/pfenv-print-int
Damien George
2014-04-05 18:11:02 +01:00
-
-
327a3e2faa
Merge pull request #435 from dhylands/str-modulo-float
Damien George
2014-04-05 18:10:11 +01:00
-
-
23419a2f8a
Merge pull request #433 from pfalcon/getattr-3arg
Damien George
2014-04-05 18:00:04 +01:00
-
-
64ef5d7f4e
Change pfenv_print_int to take machine_uint_t rather than unsinged in
Dave Hylands
2014-04-05 09:42:20 -07:00
-
-
6d508666ea
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-04-05 17:19:03 +01:00
-
-
95004e5114
py: Fix delete operation on map/dict and set objects.
Damien George
2014-04-05 17:17:19 +01:00
-
e20b6b418c
stmhal: autoflash now enters serial comms after flashing.
Damien George
2014-04-05 17:16:00 +01:00
-
f81a49e464
Allow floating point arguments with %d,i,u,o,x,X formats
Dave Hylands
2014-04-05 08:21:45 -07:00
-
e99841be69
mp_obj_get_int(): Add warning against adding implicit float->int conversion.
Paul Sokolovsky
2014-04-05 17:46:47 +03:00
-
-
cc849f70f4
Move del to locals
mux
2014-04-05 15:49:03 +02:00
-
09a4d8305d
py: Fix bug in DELETE_SUBSCR bytecode, decreasing sp too much.
Damien George
2014-04-05 13:47:41 +01:00
-
b6ec51bbf0
tests: Add test for dict delete. It fails.
Damien George
2014-04-05 13:26:00 +01:00
-
66edc5d899
py: Implement DELETE_SUBSCR bytecode; implement mp_obj_dict_delete.
Damien George
2014-04-05 13:25:13 +01:00
-
3c8aecf62c
Merge pull request #431 from pfalcon/unbreak-map-remove
Damien George
2014-04-05 12:09:09 +01:00
-
-
586bfce10d
objfun: Add equality support.
Paul Sokolovsky
2014-04-05 13:50:06 +03:00
-
38d3430320
stmhal: Add more escape seqs; add debugging output for escape seq.
Damien George
2014-04-05 11:45:59 +01:00
-
bfb7d6a26d
py: Support 3-arg getattr() builtin (with default value).
Paul Sokolovsky
2014-04-05 13:33:04 +03:00
-
80c59c06e3
Merge branch 'xterm-home-end' of github.com:pfalcon/micropython into pfalcon-xterm-home-end
Damien George
2014-04-05 11:22:34 +01:00
-
-
-
-
438d504e27
objtype: Add equality test for type types.
Paul Sokolovsky
2014-04-05 13:09:33 +03:00
-
91cbe6033a
py: Allow types to be hashable.
Paul Sokolovsky
2014-04-05 12:50:43 +03:00
-
c6813d92db
py: Put default namespace into module __main__.
Paul Sokolovsky
2014-04-04 20:08:21 +03:00
-
-
-
4a088f4b61
map: When removing a key, don't NULL the entry, but mark as deleted.
Paul Sokolovsky
2014-04-05 04:17:17 +03:00
-
-
-
a0d32991ed
mp_load_name(): Optimize for outer scope where locals == globals.
Paul Sokolovsky
2014-04-05 04:51:26 +03:00
-
e3f58c8380
map: Add mp_map_dump() (#ifdef'ed) to be handy when debugging maps.
Paul Sokolovsky
2014-04-05 04:14:22 +03:00
-
cdffa32699
stmhal readline: Parse XTERM Home/End key codes.
Paul Sokolovsky
2014-04-05 02:44:33 +03:00
-
-
c39368427c
unix: Rename module sources per latest naming conventions (mod*.c).
Paul Sokolovsky
2014-04-04 20:32:26 +03:00
-
cd31d826bf
unix: Use STATIC modifier to enable code size analysis via map file.
Paul Sokolovsky
2014-04-04 20:25:53 +03:00
-
6582a4170d
Merge pull request #421 from dhylands/git-version
Damien George
2014-04-04 16:09:29 +01:00
-
-
70193b2b4c
unix: Routines related to terminal reading should use system malloc.
Paul Sokolovsky
2014-04-04 17:47:53 +03:00
-
a7752a4540
run-tests: Elaborate python3 command override capabilities.
Paul Sokolovsky
2014-04-04 17:28:34 +03:00
-
e8208a7f02
py: Make False and True act like 0 and 1 for integer arithmetic.
Damien George
2014-04-04 15:08:23 +01:00
-
d7aadcfe1b
py: Allow dict constructor to take keyword arguments.
Damien George
2014-04-04 15:08:00 +01:00
-
36f0ee1a54
py: Remove mp_obj_less (use mp_binary_op(MP_BINARY_OP_LESS..) instead).
Damien George
2014-04-04 15:07:17 +01:00
-
bd17e1b3ae
unix: Allocate more heap memory by default on 64 bit machines.
Damien George
2014-04-04 14:29:00 +01:00
-
9b1599c663
Merge pull request #422 from dhylands/str-modulo
Damien George
2014-04-04 12:37:52 +01:00
-
-
af27259439
py: Enable optimisation of multiplying 2 small ints in compiler.
Damien George
2014-04-04 11:21:58 +00:00
-
28390340e5
tests: Make rge-sm.py use less memory (integration step increased).
Damien George
2014-04-04 11:15:54 +00:00
-
ecf5b77123
py: This time, real proper overflow checking of small int power.
Damien George
2014-04-04 11:13:51 +00:00
-
6902eeda25
py: Add m_malloc_fail function to handle memory allocation error.
Damien George
2014-04-04 10:52:59 +00:00
-
072cf022e0
tests/file-with: Add testcase which failed for @dpgeorge.
Paul Sokolovsky
2014-04-04 12:14:11 +03:00
-
6756a37a77
Implements most of str.modulo
Dave Hylands
2014-04-02 11:42:39 -07:00
-
-
bf7d690e36
Add the git version to the banner
Dave Hylands
2014-04-03 16:32:58 -07:00
-
-
5bf565e353
py: Handle small int power overflow correctly.
Damien George
2014-04-04 00:16:32 +01:00
-
4b34c76fd6
Changes to get unix/ port compiling on Cygwin.
Damien George
2014-04-03 23:51:16 +01:00
-
3996611c1b
stmhal: Add home/end cursor support in readline.
Damien George
2014-04-03 23:30:24 +01:00
-
4f7e9f5c44
Implement del
mux
2014-04-03 23:55:12 +02:00
-
3269cf2f93
Merge pull request #419 from pfalcon/stmhal-file-streams
Damien George
2014-04-03 22:48:32 +01:00
-
-
2309369291
tests: Allow to run tests on pyboard.
Damien George
2014-04-03 22:44:51 +01:00
-
d71fc37af7
tools: Improve reading back from pyboard.
Damien George
2014-04-03 22:44:37 +01:00
-
57ad7aa66b
stmhal: On soft reset, if in raw REPL mode, don't run main.py.
Damien George
2014-04-03 22:44:08 +01:00
-
0e49642965
tools: pyboard.py can now execute a file remotely!
Damien George
2014-04-03 22:12:01 +01:00
-
d8b47d3e02
stmhal: Fix raw REPL so that it passes through more ASCII chars.
Damien George
2014-04-03 22:11:43 +01:00
-
769b23a9c6
stmhal: Add powf, logf, log2f, log10f.
Damien George
2014-04-03 22:11:28 +01:00
-
aba9f51fef
stmhal: #undef log2f if it's defined.
Damien George
2014-04-03 21:16:37 +01:00
-
6693e6c506
README: ARM Linux is supported.
Paul Sokolovsky
2014-04-03 22:30:45 +03:00
-
1d4d9ddd9e
stmhal: Reimplement file support using stream protocol API.
Paul Sokolovsky
2014-04-03 20:32:54 +03:00
-
-
34e1199b3a
run-tests: Allow to override python3 command to use via environment var.
Paul Sokolovsky
2014-04-03 22:06:35 +03:00
-
c61ce96590
unix file: Implement context manager protocol (for "with" statement).
Paul Sokolovsky
2014-04-03 16:42:25 +03:00
-
98a627dc03
py: Add "io" module.
Paul Sokolovsky
2014-04-03 14:57:53 +03:00
-
8270e3853d
py: More robust int conversion and overflow checking.
Damien George
2014-04-03 11:00:54 +00:00
-
a58a7aefbd
Merge pull request #417 from pfalcon/unix-enable-gc
Damien George
2014-04-02 21:20:33 +01:00
-
-
cc7085c1ce
Merge branch 'fix-format-int' of github.com:dhylands/micropython into dhylands-fix-format-int
Damien George
2014-04-02 20:37:05 +01:00
-
-
22fe4d7344
Fix str.format to work with {:f/g/e} and ints
Dave Hylands
2014-04-02 12:07:31 -07:00
-
c322c5f07f
py: Fix regress for printing of floats and #if.
Damien George
2014-04-02 20:04:15 +01:00
-
a05f5dd952
Merge branch 'master' of github.com:micropython/micropython
Damien George
2014-04-02 19:55:26 +01:00
-
-
e90eefc84b
stmhal: Fix servo object; add fpclassify to math functions.
Damien George
2014-04-02 19:55:08 +01:00
-
-
-
78e8e30c87
unix: Enable GC.
Paul Sokolovsky
2014-04-02 20:57:19 +03:00
-
-
ad1bac63f7
tests/string-format: Add test for formatting ints with float format.
Paul Sokolovsky
2014-04-02 20:41:34 +03:00
-
e807fa8d60
gc: Uses uint defined in misc.h.
Paul Sokolovsky
2014-04-02 20:36:32 +03:00
-
d440dc0513
unix: Use argv[0] for command name in usage.
Paul Sokolovsky
2014-04-02 20:31:18 +03:00
-
a55a5469c3
unix: Support #if-able impl-specific cmdline options.
Paul Sokolovsky
2014-04-02 20:29:18 +03:00
-
d4e7e06d7f
unix: Properly recognize and report when script on cmdline not found.
Paul Sokolovsky
2014-04-02 20:19:32 +03:00
-
-
094d450003
py: Wrap compile_scope_inline_asm in #if; remove comment from misc.h.
Damien George
2014-04-02 17:31:27 +01:00
-
70f33cde48
py: Fix up so that it can compile without float.
Damien George
2014-04-02 17:06:05 +01:00
-
af6edc61bd
py: Enable a jump optimisation in the compiler.
Damien George
2014-04-02 16:12:28 +01:00
-
882b363564
py: Move to Python 3.4.0 compatibility.
Damien George
2014-04-02 15:56:31 +01:00
-
929a675a3d
Change test scripts to use python3; bytecode tests use python3.4.
Damien George
2014-04-02 15:31:39 +01:00
-
4d4a7f5354
Merge branch 'pip-micropy' of github.com:pfalcon/micropython into pfalcon-pip-micropy
Damien George
2014-04-02 15:14:28 +01:00
-
-
a12be917a4
stmhal: Add timer module; move servo PWM from TIM2 to TIM5.
Damien George
2014-04-02 15:09:36 +01:00
-
69dee59ce4
stmhal: Add backspace key to readline (along with delete key).
Damien George
2014-04-02 14:28:58 +01:00
-
10e21b9770
Add more tests.
Damien George
2014-04-02 14:23:04 +01:00
-
93b7faa29a
py: Factor out static/class method unwrapping code; add tests.
Damien George
2014-04-02 14:13:26 +01:00
-
e4c834fc1e
Add a test.
Damien George
2014-04-02 13:32:37 +01:00
-
b23fbb3126
py: Implement floating point power binop.
Damien George
2014-04-02 12:26:49 +01:00
-
660aef67c4
py: Allow multiple of str/list/tuple on left by an integer.
Damien George
2014-04-02 12:22:07 +01:00
-
802d505756
tools: Add pip-micropython to install packages in MicroPython-friendly way.
Paul Sokolovsky
2014-04-02 02:00:30 +03:00
-
-
4881566874
py: Add support for sep and end keywords in print.
Damien George
2014-04-02 10:34:44 +01:00
-
084ef373fb
py: Fix math.{ceil,floor,trunc} to return int.
Damien George
2014-04-01 21:21:50 +01:00