1. ariovistus
  2. pyd


pyd / examples / pyd_unittests / embedded3.d

Author Commit Message Date Builds
added InterpContext
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!