Skip to content

Conversation

@markshannon
Copy link
Member

@markshannon markshannon commented Dec 14, 2020

In 3.10a, the following function will generate extra line events for after the inner loop. This PR fixes that.

def dloop():
   for i in range(3):
       for j in range(3):
           a = i + j
   assert a == 4

Skipping news as this is part of implementing PEP 626

https://bugs.python.org/issue42635

@markshannon markshannon force-pushed the fix-lineno-nested-loops branch 2 times, most recently from 37f6b7b to e4c542f Compare December 14, 2020 11:04
@markshannon markshannon force-pushed the fix-lineno-nested-loops branch from e4c542f to c71485b Compare December 14, 2020 11:06
@markshannon markshannon merged commit f5e97b7 into python:master Dec 14, 2020
adorilson pushed a commit to adorilson/cpython that referenced this pull request Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants