You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def binary_search_recursive(array, element, start, end):
if start > end:
return -1
mid = (start + end) // 2
if element == array[mid]:
return mid
if element < array[mid]:
return binary_search_recursive(array, element, start, mid-1)
else:
return binary_search_recursive(array, element, mid+1, end)
An error is thrown, which seems to mean the // operator in python is not supported: "An error occurred while compiling source file '/tmp/source/source.py'\r\n" "TransformationError: Node type 'FloorDiv': Line: n. a., column: n. a.. No transformation for the node\r\n"
Would it be possible to support this?
in metapensiero.pj/src/metapensiero/pj/transformations/special.py
If you are so kind to submit this together with a small test there's no problem, thanks! Otherwise i'll add it next time I've some time to dedicate to this project. Thanks!
When trying to convert this python code:
An error is thrown, which seems to mean the
//
operator in python is not supported:"An error occurred while compiling source file '/tmp/source/source.py'\r\n" "TransformationError: Node type 'FloorDiv': Line: n. a., column: n. a.. No transformation for the node\r\n"
Would it be possible to support this?
in
metapensiero.pj/src/metapensiero/pj/transformations/special.py
The text was updated successfully, but these errors were encountered: