-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
gh-126349: Add context managers to turtle for fill
, poly
and no_animation
#126350
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
Conversation
Co-authored-by: Marie Roald <roald.marie@gmail.com>
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
Co-authored-by: Marie Roald <roald.marie@gmail.com>
Co-authored-by: Marie Roald <roald.marie@gmail.com>
This comment was marked as outdated.
This comment was marked as outdated.
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
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 <1324225+hugovk@users.noreply.github.com> Co-authored-by: Daniel Hollas <danekhollas@gmail.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Daniel Hollas <danekhollas@gmail.com>
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 <10796600+picnixz@users.noreply.github.com>
Co-authored-by: Marie Roald <roald.marie@gmail.com>
Co-authored-by: Marie Roald <roald.marie@gmail.com>
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 <1324225+hugovk@users.noreply.github.com>
(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 <yngve.m.moe@gmail.com>
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 <yngve.m.moe@gmail.com>
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
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 <roald.marie@gmail.com> Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Daniel Hollas <danekhollas@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Erlend E. Aasland <erlend@python.org>
Adds
fill()
,poly()
andno_animation()
context managers to turtle.py.Co-authored-by: Yngve Mardal Moe 3531982+yngvem@users.noreply.github.com
fill
,poly
andtracer
#126349📚 Documentation preview 📚: https://cpython-previews--126350.org.readthedocs.build/en/126350/library/turtle.html