| Commit message (Collapse) | Author | Age |
| |
|
|\
| |
| | |
windows: Complete rename of MICROPY_PATH_MAX to MICROPY_ALLOC_PATH_MAX (...
|
| | |
|
|\ \
| |/
|/| |
Fix unix DEBUG=1 builds
|
|/
|
|
|
|
|
|
| |
Without this fix, I get the following error:
CC gccollect.c
gccollect.c: In function ‘gc_helper_get_regs’:
gccollect.c:63:1: error: bp cannot be used in asm here
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
This helps the compiler do its optimisation, makes it clear which
variables are local per opcode and which global, and makes it consistent
when extra variables are needed in an opcode (in addition to old obj1,
obj2 pair, for example).
Could also make unum local, but that's for another time.
|
|
|
|
|
|
| |
Reorder interning logic in mp_obj_new_str, to be more efficient.
str_new is globally accessible, so should be prefixed with mp_obj_.
|
|
|
|
|
| |
This removes need for some casts (at least, more than it adds need
for new casts!).
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
This completes non-automatic interning of strings in the parser, so that
doc strings don't take up RAM. It complicates the parser and compiler,
and bloats stmhal by about 300 bytes. It's complicated because now
there are 2 kinds of parse-nodes that can be strings: interned leaves
and non-interned structs.
|
| |\
| | |
| | |
| | |
| | |
| | |
| | | |
into pfalcon-keep-strings-uninterned
Conflicts:
py/parse.c
|
| | |
| | |
| | |
| | | |
https://github.com/micropython/micropython/issues/560#issuecomment-42213955
|
| | | |
|
|/ / |
|
| | |
|
| |
| |
| |
| |
| | |
This means that complete slice operations are supported for lists (but not
for bytearray's and array.array's).
|
| | |
|
| |
| |
| |
| |
| | |
Older int-only encoding is not expressive enough to support arbitrary slice
assignment operations.
|
| |
| |
| |
| | |
Addresses issue #598.
|
| |
| |
| |
| | |
Now of the form MICROPY_PY_*. See issue #35.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
.makefile() should allow to specify which stream time to create - byte
or text.
|
| |
| |
| |
| |
| | |
Caveat is that __new__ should recurse to base class __new__, and ultimately,
object.__new__ is what handles instance allocation.
|
| | |
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Also, define object.__init__() (semantically empty, purely CPython compat
measure). Addresses #520.
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
MP_ALLOC_* -> MICROPY_ALLOC_*
MICROPY_PATH_MAX -> MICROPY_ALLOC_PATH_MAX
MICROPY_ENABLE_REPL_HELPERS -> MICROPY_HELPER_REPL
MICROPY_ENABLE_LEXER_UNIX -> MICROPY_HELPER_LEXER_UNIX
MICROPY_EXTRA_* -> MICROPY_PORT_*
See issue #35.
|
| | |
|
| | |
|
|\ \
| | |
| | | |
Allow compilation of unix port under clang on OS X
|
| | |
| | |
| | |
| | | |
override in vmentrytable.h
|
| | |
| | |
| | |
| | |
| | |
| | | |
by gcc 4.9.0 is unchanged (same statements, different order).
Both are inefficient, saving unmodified registers on the stack.
|
| | |
| | |
| | |
| | | |
On Mac OS "python3 test/basics/memoryerror.py" never runs out of memory, the process is frozen by the os before.
|
| | |
| | |
| | |
| | | |
It's a hack, but can't find a cleaner way to do it.
|
| | |
| | |
| | |
| | | |
See issue #608 for justification.
|
| | | |
|
|\ \ \
| | | |
| | | | |
windows: Fix compilation with mingw-w64 so it uses correct printf implem...
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
implementations
Without this flag, mingw-w64 uses the MS implementations of snpintf and the likes.
This is not really a problem since they work with the the fixes provided for msvc,
but due to the way mingw-w64's stdio.h is structured we cannot get it to use the fixes.
|
|/ / / |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
io.FileIO is binary I/O, ans actually optional. Default file type is
io.TextIOWrapper, which provides str results. CPython3 explicitly describes
io.TextIOWrapper as buffered I/O, but we don't have buffering support yet
anyway.
|
| | | |
|
| | |
| | |
| | |
| | | |
Now case of subclassing tuple works, and list is broken, see comments.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Now schedule is: for native types, we call ->make_new() C-level method, which
should perform actions of __new__ and __init__ (note that this is not
compliant, but is efficient), but for user types, __new__ and __init__ are
called as expected.
Also, make sure we convert scalar attribute value to a bound-pair tight in
mp_obj_class_lookup() method, which avoids converting it again and again in
its callers.
|
| | | |
|