-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preserve stack trace when a curried function fails #62
Comments
I agree this would be nice. I don't know whether this is possible or not, but we can look into it. |
When looking into profiling cython code I learned that there was a flag you could set. That's an option. Alternatively @jni you could use toolz.curry if performance isn't that big of an issue. We could also capture the exception, capture the traceback, and then raise a new exception with that printed out traceback. This is what I do in dask. It's a bit of a pain to do. Contributions welcome :) |
@mrocklin it won't happen immediately but I'll post here if I grab some time to start on this. Slightly related: have you guys measured the performance hit of currying functions? i.e. why not curry all the things? |
Erik benchmarked this extensively. We did curry all the things. Have you seen the |
@mrocklin yes, but why is that not the default namespace. ;) |
I'm not sure how difficult this is or how it would affect performance, but it sure as hell would be more fun to debug things!
Current stack trace:
The actual error, after some sleuthing around in IPython:
The text was updated successfully, but these errors were encountered: