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
dill.source.getsource correctly identifies numpy scalars, but doesn't create them, and instead returns the python equivalent. Should apply code to cast to the appropriate dtype.
$ python
Python 3.8.20 (default, Sep 7 2024, 10:50:45)
[Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import dill
>>> import numpy
>>> oo = 0
>>> ll = numpy.int64(1)
>>> print(dill.source.getsource(oo, force=True))
0
>>> print(dill.source.getsource(ll, force=True))
from numpy import int64
1
>>>
The text was updated successfully, but these errors were encountered:
dill.source.getsource
correctly identifiesnumpy
scalars, but doesn't create them, and instead returns the python equivalent. Should apply code to cast to the appropriatedtype
.The text was updated successfully, but these errors were encountered: