-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
Turtle context managers for fill
, poly
and tracer
#126349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
erlend-aasland
added a commit
that referenced
this issue
Jan 18, 2025
… turtle (#126350) Co-authored-by: Marie Roald <[email protected]> Co-authored-by: Yngve Mardal Moe <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Daniel Hollas <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
Thanks for suggesting and implementing this! |
Let's re-open to handle the reference leak: #126350 (comment). |
encukou
added a commit
to encukou/cpython
that referenced
this issue
Jan 20, 2025
srinivasreddy
pushed a commit
to srinivasreddy/cpython
that referenced
this issue
Jan 21, 2025
…ers to turtle (python#126350) Co-authored-by: Marie Roald <[email protected]> Co-authored-by: Yngve Mardal Moe <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Daniel Hollas <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]>
encukou
added a commit
that referenced
this issue
Jan 21, 2025
Refleak fixed in #129079, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Uh oh!
There was an error while loading. Please reload this page.
Feature or enhancement
Proposal:
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:
turtle.begin_fill()
/turtle.end_fill()
turtle.begin_poly()
/turtle.end_poly()
turtle.tracer(0)
/turtle.tracer(1)
(disable animations)@MarieRoald and I plan to submit a PR about this shortly
Has this already been discussed elsewhere?
I have already discussed this feature proposal on Discourse
Links to previous discussion of this feature:
https://discuss.python.org/t/improving-the-turtle-library/61840
Linked PRs
fill
,poly
andno_animation
#126350The text was updated successfully, but these errors were encountered: