- 18 Mar, 2015 3 commits
-
-
Kevin Modzelewski authored
Including the ability to set __class__
-
Kevin Modzelewski authored
Previously there was no way to reliably run the default setattr behavior, which can be requested by calling object.__setattr__ or PyObject_GenericSetattr. When those were called, we would check to see if there is a custom __setattr__ defined and then try to call that. But users can and do define custom __setattr__ functions that defer to object.__setattr__, so we need a way to run the default behavior without deferring to a custom setattr.
-
Kevin Modzelewski authored
-
- 17 Mar, 2015 20 commits
-
-
Kevin Modzelewski authored
Make dict.fromkeys a class method
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
I think these are getting accessed but not used right now
-
Kevin Modzelewski authored
2-arg iter() variant bytearray(xrange(256)) better support for multiple inheritance from both old- and new-style classes set.pop() str.rindex set.discard
-
Kevin Modzelewski authored
__setattr_ and thread._local
-
Marius Wachtler authored
-
Kevin Modzelewski authored
(scratch space is pre-allocated stack space since the IC can't allocate new space itself, in order to have unwinding work) Allocate a fixed amount (currently: 40 bytes) of extra stack space in our runtime ics. This involves changing the function prologue+ epilogue to do more rsp adjustment, and modifying the .eh_frame sections we generate. One tricky thing is that we currently use frame pointer elimination in our runtime ics, but the rest of the scratch space logic had assumed the scratch would be rbp-relative, which I had to convert to rsp-relative.
-
Kevin Modzelewski authored
This should help with sys_argv breaking. Hopefully it doesn't introduce too many re-calculations of the CPython expected output.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
In particular, subclassing from (oldstyle_cls, newstyle_cls) results in a newstyle class, since ClassType.__new__ defers to any of the bases that are not oldstyle classes.
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
I think this is ok, but it's implemented pretty differently from CPython for now so I'm not sure.
-
Kevin Modzelewski authored
hacky (same as the non-iter version) but seems good enough for now
-
Kevin Modzelewski authored
This will prevent tests from dirtying the source/build directories, or worse overwriting/removing files we care about. This commit expands on some existing hacks, which I don't like, but they should hopefully be going away soon.
-
Kevin Modzelewski authored
add cpython buffer + sqlite3 module, and a couple tests.
-
Kevin Modzelewski authored
Implement further changes required for virtualenv
-
Kevin Modzelewski authored
don't assert() if python errors inside of a CFGVisitor's RAII scope
-
- 16 Mar, 2015 6 commits
-
-
Michael Arntzenius authored
-
Marius Wachtler authored
-
Marius Wachtler authored
-
Marius Wachtler authored
-
Marius Wachtler authored
-
Marius Wachtler authored
-
- 14 Mar, 2015 4 commits
-
-
Chris Toshok authored
-
Chris Toshok authored
-
Chris Toshok authored
-
Chris Toshok authored
-
- 13 Mar, 2015 7 commits
-
-
Chris Toshok authored
-
Kevin Modzelewski authored
-
Kevin Modzelewski authored
INSTALLING.md: add instructions on getting gdb pretty-printers to work
-
Kevin Modzelewski authored
- make sure that, except for a few special cases, any type which has instance attributes gets a __dict__ descriptor - remove instance attributes from generator and builtin_function_or_method objects
-
Michael Arntzenius authored
-
Chris Toshok authored
-
Kevin Modzelewski authored
- oldstyle classes get a __dict__ - object().__hash__() - old style classes __getattribute__ - str.splitlines() - and file(unicode, unicode) - start_new_thread takes a third argument - set.union - instancemethod __getattr__
-