New submission from Shane <shanesmi...@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@python
components: Documentation
messages: 329932
nosy: Shane Smith, docs@python
priority: normal
severity: normal
status: open
title: Minor parameter documentation mismatch for turtle

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35250>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

  • ... Shane
    • ... Windson Yang
    • ... శ్రీనివాస్ రెడ్డి తాటిపర్తి
    • ... miss-islington
    • ... miss-islington
    • ... miss-islington
    • ... miss-islington
    • ... Éric Araujo
    • ... Serhiy Storchaka
    • ... Serhiy Storchaka
    • ... Serhiy Storchaka

Reply via email to