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
Add documentation on interpreting Trio tracebacks #798
Comments
Yeah, Python is trying to show you the exception coming out of the invisible call to I'm pretty sure that in current Python, there's no way to avoid this. I don't have any fabulous ideas for changes we could propose to Python that would help in future versions. Just not mentioning |
Possibly we should treat this as a docs issue? It can be tricky warning about weird corner cases like this in the docs, without it turning into a big pile of confusing issues that most new users don't even notice. But maybe there's a way to avoid that? |
Yes, perhaps a guide to understanding Trio stack traces. Could cover Python deficiencies like this, expand on names like "combined_nursery_error", etc. |
I'd prefer if python traces attributed
By the way, isn't this issue unique to async control structures? (@njsmith you mentioned |
I think treating this as a docs issue is a good idea -- I personally do agree that mapping to the opening line of the @belm0, it's not unique to async:
|
Perhaps this is a general Python issue, but it's rather confusing that the last line of a nursery block appears in exception traces regardless of the line being reached. Seen with Python 3.6 / Trio 0.9.0:
The text was updated successfully, but these errors were encountered: