mirror of
https://github.com/python/cpython.git
synced 2025-12-09 02:35:14 +00:00
Fix (really) for tight loop line events
This commit is contained in:
parent
fa7bec7e83
commit
ee6c9b8613
1 changed files with 2 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ def tightloop_example():
|
||||||
try:
|
try:
|
||||||
i = 0
|
i = 0
|
||||||
while 1:
|
while 1:
|
||||||
print items[i]; i+=1
|
b = items[i]; i+=1
|
||||||
except IndexError:
|
except IndexError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
@ -159,6 +159,7 @@ tightloop_example.events = [(0, 'call'),
|
||||||
(5, 'line'),
|
(5, 'line'),
|
||||||
(5, 'line'),
|
(5, 'line'),
|
||||||
(5, 'line'),
|
(5, 'line'),
|
||||||
|
(5, 'line'),
|
||||||
(5, 'exception'),
|
(5, 'exception'),
|
||||||
(6, 'line'),
|
(6, 'line'),
|
||||||
(7, 'line'),
|
(7, 'line'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue