Skip to content

Conversation

jakkdl
Copy link
Member

@jakkdl jakkdl commented Sep 25, 2024

fixes #295

I noticed this comment... 🤦

# Statement injected at the start of loops to track missed checkpoints.
ARTIFICIAL_STATEMENT = ArtificialStatement("artificial", -1)
# There's no particular reason why loops use a globally instanced statement, but
# `with` does not - mostly just an artifact of them being implemented at different times.

@Zac-HD Zac-HD merged commit a42ad99 into python-trio:main Sep 25, 2024
10 checks passed
@jakkdl jakkdl deleted the visitor91x_assertionerror branch November 15, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal error: while loop inside a fail_after() leaks ArtificialStatement

2 participants