1. ariovistus
  2. pyd

Source

pyd / infrastructure / pyd / embedded.d

Author Commit Message Date Builds
ariovistus
added InterpContext
ariovistus
implement extending embedded python 3. it is slightly different than python2, but we seem to have both working. tp_compare goes away in python 3, so we now use tp_richcompare for both 2 and 3 sq_slice, sq_ass_slice go away in python 3, which favors the extended slicing api only. python 2 supports it too, so we'll implement it here in a jiffy. pyd.embedded no longer calls py_init, because now where to call add_module and friends is now python-version-dependent. Use of on_py_init is necessary. pyind3 is working at least!
ariovistus
switched pyd to use deimos headers. calling substitute_and_alias broke link, so it's out (sort of). embedding python works! fixed some holdovers in deimos.python.object
ariovistus
added d -> array.array conversion. moved numpy.ndarray conversion to pyd.extra.
ariovistus
conversion d ranges <-> python iterators now supported required wrapping a type. so now module 'pyd' exists. come to think of it, this will be murder on multiple extension modules. oh well. Py_XINCREF isn't supposed to throw for non borrowed types changed py_def to take function type rather than return type and arg types
ariovistus
renamed conversion functions. d_type is now python_to_d _py is now d_to_python PydObject.toDItem is now PydObject.to_d python_to_d is now ex_python_to_d d_to_python is now ex_d_to_python parrot is now ex_parrot now enforcing naming convention on pyd: * public facing functions are named like this: foo_bar * types and templates are named like this: FooBar changed…
ariovistus
fixes for embedded * PyDef doesn't pollute its context with python function * improve docs apparently puzzle didn't get in last commit. oops.
ariovistus
more improvements to d_type * fix d_type for null arrays (which aren't really null) * implemented PydInputRange * fix PyEval, PyStmts: don't need to give a module for builtins * replace PyObject_BorrowedRef with template * fix PyEval_GetBuiltins and friends: they return borrowed refs!
ariovistus
conversion to/fro BigInt now handled. poorly handled: uses string intermediate representation. BigInt won't let you touch its bits. Oh well.
ariovistus
hey, candydoc is nice. Add some doc to code merge dg_convert and lib_abstract into func_wrap got rid of some cruft duplicated in doc/ or the bitbucket wiki.
ariovistus
def and Def now support keyword arguments, default arguments, and typesafe variadic arguments. OwnPyRef is a dumb name, as people will be looking for Py_INCREF, so overload Py_INCREF!
ariovistus
pruning unused things
ariovistus
added OpIndexAssign, OpSliceAssign, Len operator overloads. improved error messaging (the stderr interceptor is garbage) various tweaks and fixes to code some unittests in pyind
ariovistus
here a tweak, there a tweak.
ariovistus
whoops, forgot some files