Skip to content

turtle.dot(size="blue") has a weird behaviour #141062

@adorilson

Description

@adorilson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions