- 07 Jun, 2014 1 commit
-
-
Kevin Modzelewski authored
-
- 05 Jun, 2014 1 commit
-
-
Kevin Modzelewski authored
Replace a simple "num_args" argument with a packed struct that takes num_args and adds num_keywords, has_varargs, and has_kwargs. Tried to add asserts in all the places that don't allow keywords/varargs/starargs Started refactoring things; got to the point of attempting argument->parameter shuffling, but it's tricky if we allow every compilation to have a different signature (used by builtins). Really they all have the same signatures but different specializations; to get to that point, need to add defaults.
-
- 04 Jun, 2014 5 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
- 03 Jun, 2014 19 commits
-
-
Kevin Modzelewski authored
- Support parsing (but not running) **kw in function definitions - more consistent assertion of what parts handle non-simple arguments or not
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Added implementation of 'dir'
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Implementation of __iter__ for tuple, added tests
-
Vinzenz Feenstra authored
Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Vinzenz Feenstra authored
Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Vinzenz Feenstra authored
- Added dir0 which would in theory return the local scope, but for just returns the content of the builtins module - Added a unit test file for dir which won't print anything as the list sorting does not work as expected at the moment (missing full implementation) and the attributes are different as well (pyston has some CPython 2.7.5 does not have and vice versa) - dir1 implements the lookup on a passed object - If the object has a __dir__ method, it will call it and return the result returned by this method - Otherwise all class and instance attributes and methods are returned - If the object has a __dict__ attribute, additional to the previous one it will return the keys from that one as well Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Vinzenz Feenstra authored
Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Vinzenz Feenstra authored
Signed-off-by: Vinzenz Feenstra <evilissimo@gmail.com>
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
For the release build, was building both tools/ and tools/llc (and tools/opt), which could potentially run at the same time and interfere with each other.
-
Krzysztof Klinikowski authored
-
Krzysztof Klinikowski authored
-
Krzysztof Klinikowski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
These seem to work fairly well as tests since - they don't use any external libraries, and - they have a very straightforward input-to-output model Added some more runtime functions gcj_2014_2d is currently crashing pyston
-
- 02 Jun, 2014 8 commits
-
-
Kevin Modzelewski authored
The presence of an allocated "elts" pointer is determined by capacity>0, but the GC handler was incorrectly only choosing to visit it if size>0. Not all code paths free the elts array if size goes down to zero, so it could happen that capacity>0 and size=0, and then the elts array would not be tracked even though it was expected to be. Added a test that illustrates this.
-
Kevin Modzelewski authored
Implement str.lstrip and str.rstrip
-
Kevin Modzelewski authored
Added hasattr implementation buildin
-
Kevin Modzelewski authored
Implement dict iterators
-
Kevin Modzelewski authored
Removed assert from str to make __iter__ work again
-
Kevin Modzelewski authored
fix lint.py
-
Kevin Modzelewski authored
Compiling fixes
-
Marius Wachtler authored
-
- 01 Jun, 2014 6 commits
-
-
Krzysztof Klinikowski authored
-
Krzysztof Klinikowski authored
-
Marius Wachtler authored
-
Marius Wachtler authored
-
Krzysztof Klinikowski authored
-
Kevin Modzelewski authored
Unlike some other languages, it looks like eval() doesn't force the capturing of outer variables. Good thing too, since pretty much any function call could theoretically end up resolving to eval().
-