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
  • compile.c
Find file BlameHistoryPermalink
  • Skip Montanaro's avatar
    remove spurious SET_LINENO from com_list_for and com_list_if. All they do · 21ee37c9
    Skip Montanaro authored Jul 25, 2002
    is slow things down unnecessarily and make tracing much more verbose.
    Something like
    
        def f(n):
    	return [i for i in range(n) if i%2]
    
    should have at most two SET_LINENO instructions, not four.  When tracing,
    the current line number should be printed once, not 2*n+1 times.
    21ee37c9
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7