diff --git a/projects/PyZpc/Lib/zpy/types.py b/projects/PyZpc/Lib/zpy/types.py index 039ee13f4b..b8a796fdb9 100644 --- a/projects/PyZpc/Lib/zpy/types.py +++ b/projects/PyZpc/Lib/zpy/types.py @@ -52,7 +52,8 @@ def from_literal(value): if hasattr(value, 'to_handle'): return value else: - return ZenoObject.make_literal(value) + handle = ZenoObject.make_literal(value) + return ZenoObject(handle) def fetch_literal(self): litType_ = ctypes.c_int(0)