turtle.dot(size="blue") has a weird behaviour
Open
Nobody has claimed this yet.
stdlib
topic-tkinter
type-feature
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 35.9k
- PR merge metrics
- PR metrics pending
Description
Bug description:
The turtle.dot's documentation says:
turtle.dot()
turtle.dot(size)
turtle.dot(color, /)
turtle.dot(size, color, /)
turtle.dot(size, r, g, b, /)
Parameters:
size – an integer >= 1 (if given)
color – a colorstring or a numeric color tuple
However, turtle.dot(size="blue") doesn't raise an exception. Instead of this, the color is changed to blue.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the turtle.dot documentation and reproduce turtle.dot(size="blue") on the CPython main branch, as described in the report. Trace the turtle.dot entry point to determine whether the implementation or documentation is inconsistent; done means the call's behavior matches the documented signature and invalid size usage is handled consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 52/100