Petri Lehtinen <pe...@digip.org> added the comment: There are actually many problems with docstrings of both onkey() and onkeypress().
Both: - "Turtle instance named turtle" isn't used in the example - The repl/doctest syntax is weird onkeypress only: - "key-press event" vs. "key-press-event" - The example uses onkey() instead of onkeypress() - The bottom comment says that the example draws a hexagon, but it actually draws a straight line. ---------- stage: committed/rejected -> title: turtle docstring for onkeyrelease references onkey, not onkeyrelease -> turtle: Errors in docstrings of onkey and onkeypress _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13439> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com