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
I'm using multi-methods from plum in my library. One issue I've had is that inspect has a difficult time with _BoundFunction -- e.g. inspect.getfile will break on _BoundFunction. What's the proper way to deal with this? Should I forward inspect.getfile to _BoundFunction._f?
The text was updated successfully, but these errors were encountered:
Hey @femtomc! Yes, I think forwarding inspect.getfile to _BoundFunction._f._f sounds very sensible (note the double _f). This will show the place where the function is defined for the first time. Is it easy to redirect inspect.getfile to this?
I'm using multi-methods from
plum
in my library. One issue I've had is thatinspect
has a difficult time with_BoundFunction
-- e.g.inspect.getfile
will break on_BoundFunction
. What's the proper way to deal with this? Should I forwardinspect.getfile
to_BoundFunction._f
?The text was updated successfully, but these errors were encountered: