- 20 May, 2014 1 commit
-
-
Paul Sokolovsky authored
-
- 19 May, 2014 3 commits
-
-
Paul Sokolovsky authored
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.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
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.
-
- 17 May, 2014 3 commits
-
-
Sven Wegener authored
Signed-off-by:
Sven Wegener <sven.wegener@stealer.net>
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- 15 May, 2014 4 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This time, in mp_seq_cmp_bytes(). How many more cases are still lurking?
-
Paul Sokolovsky authored
Done in generalized manner, allowing any stream class to be specified as working with bytes.
-
- 13 May, 2014 3 commits
-
-
Paul Sokolovsky authored
sep=None is TODO.
-
Damien George authored
This should now have correct (and optimal) behaviour.
-
Paul Sokolovsky authored
-
- 12 May, 2014 5 commits
-
-
Damien George authored
Addresses issue #610.
-
Damien George authored
Debugging output for emit_glue now simplified so that the init and deinit functions are no longer needed.
-
Damien George authored
__debug__ now resolves to True or False. Its value needs to be set by mp_set_debug(). TODO: call mp_set_debug in unix/ port. TODO: optimise away "if False:" statements in compiler.
-
Damien George authored
-
Paul Sokolovsky authored
Infra for counts of other types is there, need last mile to be implemented.
-
- 11 May, 2014 18 commits
-
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Having both MP_OBJ_NOT_SUPPORTED and MP_OBJ_NULL is arguably confusing.
-
Paul Sokolovsky authored
This is better than forcing each getiter() implementation to raise exception.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
Damien George authored
Updated functions now do proper checking that n_kw==0, and are simpler because they don't have to explicitly raise an exception. Down side is that the error messages no longer include the function name, but that's acceptable. Saves order 300 text bytes on x64 and ARM.
-
Damien George authored
-
Damien George authored
Likely there are other functions that should be renamed, but this is a start.
-
Damien George authored
-
Damien George authored
For consistency with MICROPY_MOD_SYS_STDFILES, etc.
-
Paul Sokolovsky authored
This is not fully correct re: error handling, because we should check that that types are used consistently (only str's or only bytes), but magically makes lot of functions support bytes.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Two things are handled here: allow to compare native subtypes of tuple, e.g. namedtuple (TODO: should compare type too, currently compared duck-typedly by content). Secondly, allow user sunclasses of tuples (and its subtypes) be compared either. "Magic" I did previously in objtype.c covers only one argument (lhs is many), so we're in trouble when lhs is native type - there's no other option besides handling rhs in special manner. Fortunately, this patch outlines approach with fast path for native types.
-
Paul Sokolovsky authored
This was hit when trying to make urlparse.py from stdlib run. Took quite some time to debug. TODO: Reconsile bound method creation process better, maybe callable is to generic type to bind at all?
-
Paul Sokolovsky authored
-
- 10 May, 2014 3 commits
-
-
Paul Sokolovsky authored
Similar to closure and cell.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-