You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Turtle context managers for fill, poly and tracer #126349
When I taught Python with Turtle, I always had to find other examples when I got to context managers. This is a shame, as there are several places in the Turtle module where context managers make sense. The most obvious places (in my opinion) are:
Activity
gh-126349: Add 'fill', 'poly', and 'no_animation' context managers to…
erlend-aasland commentedon Jan 18, 2025
Thanks for suggesting and implementing this!
hugovk commentedon Jan 19, 2025
Let's re-open to handle the reference leak: #126350 (comment).
pythongh-126349: test_turtle: Add cleanup to avoid reference leaks
pythongh-126349: Add 'fill', 'poly', and 'no_animation' context manag…
gh-126349: test_turtle: Add cleanup to avoid reference leaks (GH-129079)
hugovk commentedon Feb 27, 2025
Refleak fixed in #129079, thanks!