1. Stephen Tu
  2. mino-pypy

Source

mino-pypy / pypy / module / cpyext / state.py

Author Commit Message Date Builds
Amaury Forgeot d'Arc
Fixes for cpyext module: use space.applevel instead of wrapping everything
Branches
kill-faking
Amaury Forgeot d'Arc
cpyext: implement Py_GetVersion()
Amaury Forgeot d'Arc
Add space argument to all instances of w_obj.getdict()
Alex Gaynor
Added space.len_w which is a shortcut for space.int_w(space.len(w_obj))
Amaury Forgeot d'Arc
hg merge default
Branches
fast-forward
Amaury Forgeot d'Arc
merge default
Branches
fast-forward
Hakan Ardo
hg merge default
Branches
jit-unroll-loops
Armin Rigo
Hack around, mostly importing the _PyImport_{Find,Fixup}Extension() from CPython. Prevents the same extension module from being initialized twice.
Armin Rigo
Backporting the changes done to cpyext on fast-forward back to the trunk.
Dan Villiom Podlaski Christiansen
No-op merge to register the merge done in 0e3099e3cc33 with Mercurial.
Branches
fast-forward
Antonio Cuni
merge from trunk: svn merge svn+ssh://codespeak.net/svn/pypy/trunk -r79770:HEAD .
Branches
jitypes2
Antonio Cuni
merge from trunk: svn merge http://codespeak.net/svn/pypy/trunk -r79389:HEAD in particular, this merges the _ctypes changes that amaury did on the fast-forward branch and then merged on trunk
Branches
jitypes2
Hakan Ardo
svn merge -r79225:HEAD svn+ssh://hakanardo@codespeak.net/svn/pypy/trunk
Branches
jit-unroll-loops
Amaury Forgeot d'Arc
Merge from trunk: -r79790:79849
Branches
fast-forward
Amaury Forgeot d'Arc
Merge from trunk svn merge -r79456:79701 ../trunk
Branches
fast-forward
Amaury Forgeot d'Arc
On Windows, set sys.dllhandle to a working DLL handle if cpyext is enabled. Now ctypes.pythonapi works, except that: - the 'O' ctypes code does not work yet (python object <-> PyObject* conversion) - ctypes.pythonapi functions will crash the interpreter if they raise an exception which means that PyUnicode_GetDefaultEncoding() is the only usable function at the moment :-/
Branches
fast-forward
Benjamin Peterson
merge from trunk
Branches
fast-forward
Amaury Forgeot d'Arc
remove unused imports
Amaury Forgeot d'Arc
Add a new way to borrow objects: borrow_from(None, w_obj) will keep the object alive until the end of the C function call (managed by generic_cpy_call()). From what I understand, this is very similar to JNI "Local References". Use this whenever there is no container managed by user code: PyErr_Occurred(), PySys_GetObject()
Amaury Forgeot d'Arc
Put management of reference counted objects in its own State structure.
Amaury Forgeot d'Arc
Finally manage to remove all "borrowed=True" from the code.
Amaury Forgeot d'Arc
Start to refactor the "borrowed references" system: now functions may return a BorrowedPair that ties the container with the returned object the idiom is now: "return borrow_from(w_container, w_obj)" 'borrowed=True' disappears from the api signatures, state.last_container is gone. Let's see if this translates...
Amaury Forgeot d'Arc
Store an OperationError instead of the (exc_type, exc_value) attributes pair. This is a little faster when errors are passed from C to pypy and vice-versa, and it will be easier to add the traceback.
Jean-Paul Calderone
(fijal, afa, exarkun) Handle extensions which init their module object with a relative name by keeping track of what we think the name of the module being imported is and using that instead of the name supplied by the extension. Also (somewhat unrelated) skip a test which was reporting leaked references.
Maciej Fijalkowski
(xoraxax, afa, agaynor, arigo, benjamin, exarkun, fijal, jandem, lucian, trundle, zooko) Merge the cpyext branch - this branch adds an ability to load cpython extension modules written in C (.so). Work in progress, has known bugs. Right now the module is disabled since it adds an attribute on W_Root (_pyolifeline) which is not a desired behavior.
Alexander Schremmer
Fix refcounting at various places and instantiate the bridge only once!
Alexander Schremmer
General progress, not sure how to implement the object and type.
Alexander Schremmer
Refactor test code, add new test that checks whether inits exception is respected, fix the bug.
Alexander Schremmer
Add exception handling to cpyext.
Alexander Schremmer
Added new test and Py_None support.
  1. Prev
  2. 1
  3. 2
  4. Next