1. ariovistus
  2. pyd

Source

pyd / examples / pyd_unittests / 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
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
Init now supports default arguments and typesafe variadic arguments. improvement to Replace: favor longer replacees if ambiguity hello Join! moved unittests in pyind to dedicated pyd_unittests.