- 31 Mar, 2015 1 commit
-
-
Travis Hance authored
implemented kmod's suggestions
-
- 30 Mar, 2015 5 commits
-
-
Kevin Modzelewski authored
through syntax error when you to `del` a var stored in a closure
-
Kevin Modzelewski authored
add option to tester script to skip specified tests
-
Kevin Modzelewski authored
Conflicts: src/codegen/ast_interpreter.cpp src/runtime/types.cpp
-
Kevin Modzelewski authored
Update INSTALLING.md
-
Weng Shiwei authored
add "sudo" before apt-get It seems a typo?
-
- 28 Mar, 2015 3 commits
-
-
Chris Toshok authored
add StackRoot<> and #defines for DECREF
-
Chris Toshok authored
add a variadic template ctor that delegates to T's constructor (making things potentially a bit more compact for constructing rooted boxes)
-
Chris Toshok authored
-
- 27 Mar, 2015 7 commits
-
-
Kevin Modzelewski authored
Misc fixes for virtualenv / pip
-
Marius Wachtler authored
-
Marius Wachtler authored
+ fix a test failing because of a slightly different error message than cpython 2.7.8
-
Marius Wachtler authored
-
Kevin Modzelewski authored
Previously we would say that they were coming from the same file as they are executed in, typically on line 1, which would give a misleading traceback saying that the module docstring threw the error. Now, do what CPython does and say that the file is "<string>", and don't display the source line. The method is pretty hacky right now, where it only makes this adjustment when generating the traceback. Instead we should probably get rid of storing the BoxedModule in the sourceinfo in the first place, and just passing around the relevant info (fn, locals, globals, etc).
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Conflicts: src/codegen/ast_interpreter.cpp src/codegen/irgen/irgenerator.cpp src/codegen/pypa-parser.cpp
-
- 26 Mar, 2015 17 commits
-
-
Kevin Modzelewski authored
in merge: - with_ctxclass_instance_attrs now succeeds due to d1387d74 - merge ~conflict in LangPrimitive opcodes
-
Kevin Modzelewski authored
Remove dbg -O and release -n configurations. Just for dev; leave Travis-CI the way it is for now.
-
Kevin Modzelewski authored
They test what happens when a weakref's referent gets collected, but I guess in certain build configurations we would keep the object alive due to some sort of different memory layout (got saved in a CSR or a stack slot that didn't get rewritten, etc). Adding some extra function calls seems to help, though it's hard to tell how reliable it is.
-
Kevin Modzelewski authored
Misc fixes for pip part 3
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
Use cpythons isinstance and issubclass implementation
-
Kevin Modzelewski authored
Use the pypa parser as the default parser.
-
Marius Wachtler authored
and let the interpreter actually do a cls lookup when encountering a ClsAttribute node...
-
Marius Wachtler authored
but both args have to fit into an int...
-
Marius Wachtler authored
-
Marius Wachtler authored
-
Marius Wachtler authored
This commit removes our implementation of this functions, because they could not handle mixing of old and new style classes. And having two implementations with very similar name but different results is very confusing. Also adds __subclasscheck__ and __instancecheck__ support
-
Marius Wachtler authored
Switches the meaning of -x. In addition update to latest pypa version
-
Kevin Modzelewski authored
Previously it was UNTRACKED and the object's gcHandler would scan it if necessary. This worked ok most of the time but caused issues when we subclass from an extension class: the memory for those classes are allocated conservatively, which meant that a gc handler wasn't called. One potential approach would be to allocate extension objects as PYTHON allocations but with a gcHandler that both scans conservatively and also knows about the attrs array. But for now it seems easier to allocate the attrs array as a PRECISE array (which means it gets scanned) rather than UNTRACKED, since it will automatically get picked up (and provide better gc safety in general and remove one of the odd gc cases). I didn't realize that we weren't using PRECISE at all and that it wasn't completely working, so this change also required setting kind_data for PRECISE allocations, and fixing the way we keep this updated during gc_realloc.
-
Kevin Modzelewski authored
- Add some more time functions - Workaround for logging for now, to not try to show the caller frame - Copy over everything in LIBPYSTON in the cmake build (useful for django to copy over things like templates) - Allow str/unicode subclasses in more places - Add a BoxedFile gc handler - PyLong_FromString - set.difference - iter(iter(""))
-
Travis Hance authored
-
Chris Toshok authored
-
- 25 Mar, 2015 7 commits
-
-
Chris Toshok authored
-
Chris Toshok authored
cache BoxedString*'s for a module's constant AST_TYPE::Str nodes. emit the pointers to these BoxedString's in the generated IR
-
Chris Toshok authored
Cache pypa parsed AST to disk
-
Michael Arntzenius authored
Conflicts: src/core/ast.h src/core/cfg.cpp test/tests/sys_test.py
-
Michael Arntzenius authored
This lets class & function definitions become ordinary assignments in the CFG, which simplifies our invariants and fixes problems with the interaction between definedness analysis and block-terminating "invoke"s.
-
Travis Hance authored
-
Travis Hance authored
-