-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
bpo-30579: Docs for dynamic traceback creation #5653
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
Conversation
I merged this without doc updates prior to beta 1, so this backfills the missing details. The handling of frame and traceback objects in the language reference could stand to be significantly improved in general, but this is a deliberately minimal update in order to cover the changes that were made. |
Thanks @ncoghlan for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
(cherry picked from commit aec7532) Co-authored-by: Nick Coghlan <[email protected]>
GH-5655 is a backport of this pull request to the 3.7 branch. |
(cherry picked from commit aec7532) Co-authored-by: Nick Coghlan <[email protected]>
@@ -198,16 +198,23 @@ Standard names are defined for the following types: | |||
Defaults to ``None``. Previously the attribute was optional. | |||
|
|||
|
|||
.. data:: TracebackType | |||
.. class:: TracebackType(tb_next, tb_frame, tb_lasti, tb_lineno) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In class
directives, things in parens should be base classes, not constructor parameters.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@merwok This PR is old enough now that fixing the markup here is likely better handled as a separate issue on the tracker.
https://bugs.python.org/issue30579