- 23 Jul, 2014 7 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Oh, no this was the issue: we were writing out valid-looking but corrupt pyc files if the parser crashed. Now leave the files as corrupt if the parser crashes
-
Kevin Modzelewski authored
Before was throwing AttributeError, since we were just translating it to: import a b = a.b Now there's a special importFrom runtime function that does essentially the same thing, but throws the proper exception.
-
Kevin Modzelewski authored
Now more resilient to truncated pyc files; got into a bad situation where the parser crashed, wrote out a half-pyc file, which wasn't judged to be invalid.
-
Kevin Modzelewski authored
Previously, a non-satisfied except filter would cause the traceback to be lost, since we were using the one-argument 'raise exc' form.
-
Kevin Modzelewski authored
For os.py. Currently just do it by inspecting the set of modules at the end of the runtime setup; CPython does it by examining the "import inittab". Required adding str comparison methods so they can be sorted. bonus: add errno module.
-
- 22 Jul, 2014 11 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
The python stdlib apparently uses a bunch of old-style ways of doing things. Instead of doing the throwing directly in the generated IR, call a runtime function raise1 which will take care of the semantics of checking the type of the raised object, etc.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Ie if a class is defined in a function, and that class contains a function which references variables from the enclosing function, previously the classdef would not pass the closure through and things would fail. Now classdefs (and other scopes) can pass through closures even if they don't add their own variables to the closured-set. Also, fix some bugs along the way.
-
Kevin Modzelewski authored
Before we would write all local names into the class dict; this is close, but was including undefined names. Have to get help from the IR generator to determine the live names, so add a LOCALS opcode (CPython has a similar one), and use that to generate the dict that a classdef returns. The current support is not quite enough to support the locals() function, since even though we have that information available at the IR generator, it's not easy to make it available to the runtime.
-
Kevin Modzelewski authored
thanks Marius for the report
-
Kevin Modzelewski authored
Before it was part of the (type-agnostic) AST-walker, which didn't make sense.
-
Kevin Modzelewski authored
Not sure how these didn't show up before...
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
- 21 Jul, 2014 2 commits
-
-
Kevin Modzelewski authored
Fixed a bug causing unit tests to fail in my installation
-
Travis Hance authored
Fixed a bug causing unit tests to fail in my installation: the declaration of runtimeCall in stdlib.bc had a different name in place of `class.std::vector`, so looking the type up by hard-coding its name results in a type error when the instruction calling `runtimeCall` is constructed.
-
- 09 Jul, 2014 1 commit
-
-
Kevin Modzelewski authored
-
- 08 Jul, 2014 3 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Implement lambda expressions
-
Kevin Modzelewski authored
-
- 29 Jun, 2014 3 commits
-
-
https://github.com/dropbox/pystonMarius Wachtler authored
Conflicts: src/codegen/irgen/hooks.cpp src/codegen/irgen/irgenerator.cpp
-
Marius Wachtler authored
-
https://github.com/dropbox/pystonMarius Wachtler authored
Conflicts: src/codegen/irgen/hooks.cpp src/codegen/irgen/irgenerator.cpp src/core/types.h
-
- 27 Jun, 2014 2 commits
-
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Not completely correct/working yet, but finally start doing classes the right way.
-
- 26 Jun, 2014 11 commits
-
-
Kevin Modzelewski authored
Should probably give up on hacking it like this and just handle classdef scopes for real.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Some basic fixes
-
Kevin Modzelewski authored
(was previously only working at the global scope)
-
Kevin Modzelewski authored
Pretty similar to #78
-
Eitan Adler authored
-
Eitan Adler authored
- find could not possibly have worked prior
-
Kevin Modzelewski authored
(Though most libraries will probably crash)
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-