Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • C cpython
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kirill Smelkov
  • cpython
  • Repository
  • cpython
  • Python
  • traceback.c
Find file BlameHistoryPermalink
  • Jeffrey Yasskin's avatar
    Issue 5954, PyFrame_GetLineNumber: · f7f858d1
    Jeffrey Yasskin authored May 08, 2009
    Most uses of PyCode_Addr2Line
    (http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get
    the line number of a specified frame, but there's no way to do that directly.
    Forcing people to go through the code object makes them know more about the
    guts of the interpreter than they should need.
    
    The remaining uses of PyCode_Addr2Line seem to be getting the line from a
    traceback (for example,
    http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line),
    which is replaced by the tb_lineno field.  So we may be able to deprecate
    PyCode_Addr2Line entirely for external use.
    f7f858d1
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7