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
Traceback (most recent call last):
File "/home/rembserj/root-support/forum/numpy-ints-not-accepted-in-ttree-getentry-in-root-6-32/repro.py", line 8, in <module>
print(cppyy.gbl.foo(np.int64(10)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: long ::foo(std::int64_t x) =>
TypeError: could not convert argument 1 (int/long conversion expects an integer object)
Expected output:
10
In fact, the expected behavior was occurring with a previous cppyy version used before ROOT 6.32. Therefore, this issue is a behavior regression that catches uses by surprise.
The text was updated successfully, but these errors were encountered:
At least I couldn't identify a commit of patch that explicitly added support for it. I will try out a few different ROOT and cppyy versions to understand what is going on.
Reported originally on the ROOT forum:
https://root-forum.cern.ch/t/numpy-ints-not-accepted-in-ttree-getentry-in-root-6-32/59712/8
Reproducer:
Output:
Traceback (most recent call last): File "/home/rembserj/root-support/forum/numpy-ints-not-accepted-in-ttree-getentry-in-root-6-32/repro.py", line 8, in <module> print(cppyy.gbl.foo(np.int64(10))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: long ::foo(std::int64_t x) => TypeError: could not convert argument 1 (int/long conversion expects an integer object)
Expected output:
In fact, the expected behavior was occurring with a previous cppyy version used before ROOT 6.32. Therefore, this issue is a behavior regression that catches uses by surprise.
The text was updated successfully, but these errors were encountered: