-
-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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
gh-126349: Add context managers to turtle for fill
, poly
and no_animation
#126350
Conversation
Co-authored-by: Marie Roald <[email protected]>
Co-authored-by: Yngve Mardal Moe <[email protected]>
Co-authored-by: Yngve Mardal Moe <[email protected]>
Co-authored-by: Marie Roald <[email protected]>
Co-authored-by: Marie Roald <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Yngve Mardal Moe <[email protected]>
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a note about these additions to the Doc/whatsnew/3.14.rst
?
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: Daniel Hollas <[email protected]>
We have tried to address the review comments now 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some final minor nitpicks. Otherwise looks great!
Co-authored-by: Bénédikt Tran <[email protected]>
Co-authored-by: Marie Roald <[email protected]>
Co-authored-by: Marie Roald <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Last one and I am good! (modulo Hugo's comment)
Co-authored-by: Hugo van Kemenade <[email protected]>
(Conflict resolved.) @erlend-aasland Any more comments or good to merge? |
fill
, poly
and no_animation
fill
, poly
and no_animation
Co-authored-by: Yngve Mardal Moe <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the mock.patch context manager handling in the tests could be improved
Co-authored-by: Yngve Mardal Moe <[email protected]>
Co-authored-by: Yngve Mardal Moe <[email protected]>
We've addressed the review comments now 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, everyone! :)
This change introduced a reference leak in test_turtle:
cc @encukou |
I suspect that the regression comes from the new |
I believe we found a fix. If we add the following teardown method to def tearDown(self):
turtle.Turtle._screen = None
return super().tearDown() then @vstinner's command gives this output instead:
We're not sure how the workflow is for fixing regressions that we introduced. Should we make a new PR that starts with |
Yes please, because we've only just merged this PR, the fix can go under the same issue. |
We'll submit a PR when we're off work today then :) |
…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]>
Adds
fill()
,poly()
andno_animation()
context managers to turtle.py.Co-authored-by: Yngve Mardal Moe [email protected]
fill
,poly
andtracer
#126349📚 Documentation preview 📚: https://cpython-previews--126350.org.readthedocs.build/en/126350/library/turtle.html