aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/bindings/py_variant.h
blob: ca97123183beb3f4aa6df78d1f4f3f9c6e5b8a28 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "py_ctx.h"

namespace NPython {

TPyObjectPtr ToPyVariant(
        const TPyCastContext::TPtr& castCtx,
        const NKikimr::NUdf::TType* type,
        const NKikimr::NUdf::TUnboxedValuePod& value);

NKikimr::NUdf::TUnboxedValue FromPyVariant(
        const TPyCastContext::TPtr& castCtx,
        const NKikimr::NUdf::TType* type,
        PyObject* value);

} // namspace NPython