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
The inspect.getsource statement returns the function foo with the decorator decorating, but the dill.source.getsource returns the wrapper function from the decorator.
I would expect dill.source.getsource to return what inspect.getsource.
If I'm wildly misunderstanding the purpose of dill.source.getsource, feel free to close!
The text was updated successfully, but these errors were encountered:
I see a few possibly related issues (#221, #603) but I think this is unique.
I'm running the following in pytest:
The printed statements read:
The
inspect.getsource
statement returns the functionfoo
with the decorator decorating, but thedill.source.getsource
returns thewrapper
function from the decorator.I would expect
dill.source.getsource
to return whatinspect.getsource
.If I'm wildly misunderstanding the purpose of
dill.source.getsource
, feel free to close!The text was updated successfully, but these errors were encountered: