py_iterator.h 572 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "py_ptr.h"
  3. #include "py_ctx.h"
  4. namespace NPython {
  5. extern PyTypeObject PyIteratorType;
  6. extern PyTypeObject PyPairIteratorType;
  7. TPyObjectPtr ToPyIterator(
  8. const TPyCastContext::TPtr& castCtx,
  9. const NKikimr::NUdf::TType* itemType,
  10. const NKikimr::NUdf::TUnboxedValuePod& value);
  11. TPyObjectPtr ToPyIterator(
  12. const TPyCastContext::TPtr& castCtx,
  13. const NKikimr::NUdf::TType* keyType,
  14. const NKikimr::NUdf::TType* payloadType,
  15. const NKikimr::NUdf::TUnboxedValuePod& value);
  16. } // namspace NPython