[New-bugs-announce] [issue35250] Minor parameter documentation mismatch for turtle

Shane report at bugs.python.org
Wed Nov 14 15:40:45 EST 2018


New submission from Shane <shanesmith4 at gmail.com>:

I noticed a slight mismatch in the parameter documentation for one of turtle's functions.  onclick() accepts the parameters (fun, btn, add), but the documentation describes the parameters (fun, num, add).  A minor issue, to be sure, but I wanted to point it out since I just noticed it.  I'm using Python 3.7.1 but I suspect it's not isolated to that.

>>> help(turtle.Turtle().onclick)
Help on method onclick in module turtle:

onclick(fun, btn=1, add=None) method of turtle.Turtle instance
    Bind fun to mouse-click event on this turtle on canvas.
    
    Arguments:
    fun --  a function with two arguments, to which will be assigned
            the coordinates of the clicked point on the canvas.
    num --  number of the mouse-button defaults to 1 (left mouse button).
    add --  True or False. If True, new binding will be added, otherwise
            it will replace a former binding.

----------
assignee: docs at python
components: Documentation
messages: 329932
nosy: Shane Smith, docs at python
priority: normal
severity: normal
status: open
title: Minor parameter documentation mismatch for turtle

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35250>
_______________________________________


More information about the New-bugs-announce mailing list