summaryrefslogtreecommitdiffstats
path: root/yql/essentials/udfs/common/python/bindings/py_ctx.h
diff options
context:
space:
mode:
authorvvvv <[email protected]>2025-06-17 23:08:38 +0300
committervvvv <[email protected]>2025-06-18 11:14:06 +0300
commit7803a38571cb0dc674b01065f374c116de966b4b (patch)
tree1e3e98c1d5205cf9930965e6a5c6a967824165ac /yql/essentials/udfs/common/python/bindings/py_ctx.h
parent80d6f567b04024db1404525203859e917f332a26 (diff)
YQL-20086 udfs
commit_hash:631fd9ed259a7c95a618e1265f61df28a87ce922
Diffstat (limited to 'yql/essentials/udfs/common/python/bindings/py_ctx.h')
-rw-r--r--yql/essentials/udfs/common/python/bindings/py_ctx.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/yql/essentials/udfs/common/python/bindings/py_ctx.h b/yql/essentials/udfs/common/python/bindings/py_ctx.h
index 9e86042908f..7958fc1f815 100644
--- a/yql/essentials/udfs/common/python/bindings/py_ctx.h
+++ b/yql/essentials/udfs/common/python/bindings/py_ctx.h
@@ -41,28 +41,28 @@ public:
}
void Cleanup() override {
- Value = {};
+ Value_ = {};
}
template <typename TCtx>
void Set(const TIntrusivePtr<TCtx>& ctx, TValueType val) {
- Value = std::move(val);
+ Value_ = std::move(val);
ctx->CleanupList.PushBack(this);
}
bool IsSet() const {
- return !!Value;
+ return !!Value_;
}
const TValueType& Get() const {
- if (!Value) {
+ if (!Value_) {
throw yexception() << "Trying to use python wrap object with destroyed yql value";
}
- return Value;
+ return Value_;
}
private:
- TValueType Value;
+ TValueType Value_;
};
struct TPyContext: public TSimpleRefCount<TPyContext> {