Skip to content

Commit 3c2f4cd

Browse files
author
Philip Guo
committed
got generators working
1 parent 4d35293 commit 3c2f4cd

3 files changed

Lines changed: 11332 additions & 1 deletion

File tree

‎v3/pg_logger.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,11 @@ def interaction(self, frame, traceback, event_type):
282282
# or else we won't properly capture heap object mutations in the trace!
283283

284284
if event_type == 'call':
285-
assert top_frame not in self.frame_ordered_ids
285+
# Don't be so strict about this assertion because it FAILS
286+
# when you're calling a generator (not for the first time),
287+
# since that frame has already previously been on the stack ...
288+
#assert top_frame not in self.frame_ordered_ids
289+
286290
self.frame_ordered_ids[top_frame] = self.cur_frame_id
287291
self.cur_frame_id += 1
288292

0 commit comments

Comments
 (0)