py_stream.h 662 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "py_ptr.h"
  3. #include "py_ctx.h"
  4. namespace NPython {
  5. extern PyTypeObject PyStreamType;
  6. extern PyObject* PyYieldIterationException;
  7. TPyObjectPtr ToPyStream(
  8. const TPyCastContext::TPtr& castCtx,
  9. const NKikimr::NUdf::TType* type,
  10. const NKikimr::NUdf::TUnboxedValuePod& value);
  11. NKikimr::NUdf::TUnboxedValue FromPyStream(
  12. const TPyCastContext::TPtr& castCtx,
  13. const NKikimr::NUdf::TType* type,
  14. const TPyObjectPtr& value,
  15. const TPyObjectPtr& originalCallable,
  16. const TPyObjectPtr& originalCallableClosure,
  17. const TPyObjectPtr& originalCallableArgs);
  18. } // namespace NPython