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 dot function not accepting color parameter. #138772
But isnt that just how the signature turtle.dot(size=None, *color) is supposed to work? There is no single argument "color" that you could address via keyword. We have "*args" which are just named "*color" here.
In my opinion, the documentation is not the issue. When I attempt to provide a color parameter as specified in the documentation https://docs.python.org/3/library/turtle.html#turtle.dot I encounter an error. Similarly, if I omit the color parameter, I also encounter an error.
Activity
JanEricNitschke commentedon Sep 11, 2025
Error definitely happens, i can reproduce this on WSL and Windows all the way back to 3.9 (havent tested further)
JanEricNitschke commentedon Sep 11, 2025
But isnt that just how the signature
turtle.dot(size=None, *color)is supposed to work? There is no single argument "color" that you could address via keyword. We have "*args" which are just named "*color" here.JanEricNitschke commentedon Sep 11, 2025
Maybe the docs should be clearer on the expected syntax?
There also seem to be exactly no tests for
Turtle.dot()unless i am missing something: https://github.com/python/cpython/blob/main/Lib/test/test_turtle.py#L568and a search over the whole repo for ".dot(" only brings up the docstring (and docs).
Atticus-Beard commentedon Sep 11, 2025
In my opinion, the documentation is not the issue. When I attempt to provide a color parameter as specified in the documentation https://docs.python.org/3/library/turtle.html#turtle.dot I encounter an error. Similarly, if I omit the color parameter, I also encounter an error.
JanEricNitschke commentedon Sep 11, 2025
@PortalWalkerCodes that link you provided goes to nowhere.
Also you are doing
Turtle.dotinstead ofTurtle().dotanddotis not a class method.Also alternatively it is a top level function
Work, but
does not.
pythongh-138772: Improve documentation for turtle color functions
gh-138772: Add tests for Turtle.dot() signature (GH-138773)
pythongh-138772: Add tests for Turtle.dot() signature (pythonGH-138773)
pythongh-138772: Improve documentation for turtle color functions
[3.14] gh-138772: Add tests for Turtle.dot() signature (GH-138773) (G…
gh-138772: Fix and improve documentation for turtle color functions (G…
pythongh-138772: Fix and improve documentation for turtle color funct…
pythongh-138772: Fix and improve documentation for turtle color funct…
[3.14] gh-138772: Fix and improve documentation for turtle color func…
[3.13] gh-138772: Fix and improve documentation for turtle color func…
[3.13] pythongh-138772: Add tests for Turtle.dot() signature (pythonG…
[3.13] gh-138772: Add tests for Turtle.dot() signature (GH-138773) (#…