Skip to content

Commit

Permalink
Remove a "RESUME" instruction which seems to cause random Python crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
Azureblade3808 committed Sep 12, 2024
1 parent ea4cda2 commit 8346182
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions deferrer/_defer.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ def __bool__() -> Literal[False]:
)
dummy_code_bytes += bytes([Opcode.COPY_FREE_VARS, n_free_vars])

dummy_code_bytes += bytes([Opcode.RESUME, 0])

# If the original function has local variables, pass their current values by
# appending these values to constants and using some instruction pairs of
# "LOAD_CONST" and "STORE_FAST".
Expand Down

0 comments on commit 8346182

Please sign in to comment.