Closed orestis-z closed 7 years ago
Ever saw this?
Traceback (most recent call last):
File "jet/jit.py", line 79, in <module>
print(test_func(numpy.array([1, 2]), b))
File "jet/jit.py", line 44, in wrapper
func_name=fun_name)),
File "/home/wolfv/Programs/jet/jet/utils.py", line 81, in get_caller_info
while reduce(lambda bool_1st, bool_2nd: bool_1st or bool_2nd, map(lambda name: (len(calframe[i][1]) >= len(name) and calframe[i][1][-len(name):] == name) , exclude_list)):
File "/home/wolfv/Programs/jet/jet/utils.py", line 81, in <lambda>
while reduce(lambda bool_1st, bool_2nd: bool_1st or bool_2nd, map(lambda name: (len(calframe[i][1]) >= len(name) and calframe[i][1][-len(name):] == name) , exclude_list)):
IndexError: list index out of range
lgtm!
hmmmm it doesn't seem to work with python3 yet :(
especially map, reduce have changed a little bit.
these changes work for the placeholder name getter, but there is some error with the reduce in
utils.py
...