py_callable.h 547 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include "py_ptr.h"
  3. #include "py_ctx.h"
  4. namespace NPython {
  5. extern PyTypeObject PyCallableType;
  6. TPyObjectPtr ToPyCallable(
  7. const TPyCastContext::TPtr& castCtx,
  8. const NKikimr::NUdf::TType* type,
  9. const NKikimr::NUdf::TUnboxedValuePod& value);
  10. NKikimr::NUdf::TUnboxedValue FromPyCallable(
  11. const TPyCastContext::TPtr& castCtx,
  12. const NKikimr::NUdf::TType* type,
  13. PyObject* value);
  14. void SetupCallableSettings(const TPyCastContext::TPtr& castCtx, PyObject* value);
  15. } // namspace NPython