This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: minor bug in turtle
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, jeremysanders
Priority: normal Keywords:

Created on 2007-08-10 11:30 by jeremysanders, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (2)
msg32620 - (view) Author: Jeremy Sanders (jeremysanders) Date: 2007-08-10 11:30
xpc17:~:$ python
Python 2.5 (r25:51908, Apr 10 2007, 10:27:40)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import turtle
>>> turtle.demo2()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python2.5/lib-tk/turtle.py", line 874, in demo2
    sleep(2)
NameError: global name 'sleep' is not defined

Sleep needs to be imported from the time module before it is used.
msg32621 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-08-10 17:32
Fixed in rev. 56900.
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45297
2007-08-10 11:30:25jeremysanderscreate