Bug 716435
Summary: | Tracebacks should contain the first line of continuation lines | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Petr Šplíchal <psplicha> |
Component: | python | Assignee: | Dave Malcolm <dmalcolm> |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | CC: | ohudlick |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-07-01 00:15:04 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Petr Šplíchal
2011-06-24 12:30:32 UTC
The printing code in question is within Python/traceback.c It uses the tb->tb_lineno of a PyTracebackObject to determine which line to print, and tb_lineno is in fact exposed to Python code; see: http://docs.python.org/library/traceback.html It's set up in newtracebackobject (called by PyTraceBack_Here(PyFrameObject *frame)) based on the last bytecode being executed within the frame: PyCode_Addr2Line(frame->f_code, frame->f_lasti) Development Management has reviewed and declined this request. You may appeal this decision by reopening this request. OK, filed upstream as: http://bugs.python.org/issue12458 |