[docs] Turtle graphics, what is the function done doing?

Sandro Tosi sandro.tosi at gmail.com
Mon Oct 31 10:17:26 CET 2011


Hello Csaba,

On Tue, Oct 18, 2011 at 16:54, Csaba Szepesvari <szepesva at ualberta.ca> wrote:
> Hi,
>
> Look at the example code at:
> http://docs.python.org/py3k/library/turtle.html#turtle.towards
>
> from turtle import *
> color('red', 'yellow')
> begin_fill()
> while True:
>     forward(200)
>     left(170)
>     if abs(pos()) < 1:
>         break
> end_fill()
> done()
>
> It calls the done() function at the end. However, this function is not
> documented.
> My experimentation shows that this is really coming from the turtle module,
> so it should be documented here.. (or at least pls give some pointer to its
> documentation).

This has now been fixed with these commits:

    http://hg.python.org/cpython/rev/1588b678d634
    http://hg.python.org/cpython/rev/e23baae539f7
    http://hg.python.org/cpython/rev/c7963dff98fa

Regards,
-- 
Sandro Tosi (aka morph, morpheus, matrixhasu)
My website: http://matrixhasu.altervista.org/
Me at Debian: http://wiki.debian.org/SandroTosi


More information about the docs mailing list