Skip to content

Commit

Permalink
[py|converter] Revert using C function for converting types
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-kabanov committed Nov 14, 2024
1 parent f3c6b14 commit 831743b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oif/lang_python/oif/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ def _pyobject_from_pointer(v):

def wrapper(*arg_values):
py_arg_values = [None] * len(arg_types)
# for i, (t, v) in enumerate(zip(arg_types, arg_values)):
# py_arg_values[i] = type_conversion[t](v)
convert_fn(py_arg_values, arg_values, arg_types)
for i, (t, v) in enumerate(zip(arg_types, arg_values)):
py_arg_values[i] = type_conversion[t](v)
# convert_fn(py_arg_values, arg_values, arg_types)

result = fn(*py_arg_values)
if result is None:
Expand Down

0 comments on commit 831743b

Please sign in to comment.