[issue21882] turtledemo modules imported by test___all__ cause side effects or failures

Terry J. Reedy report at bugs.python.org
Mon Jun 30 04:13:00 CEST 2014


Terry J. Reedy added the comment:

6. Add 'good citizenship' note to demohelp.txt. Also point out that all turtle initialiazation should be in main anyway (see 2. and 3. below). Demo should run independently of what other demos do.

re 2: If the mode call is needed, it is a bug that it is not main() as another demo could change it.

re 3: ditto, though much less likely.

re 4: As mentioned in #14117, two_canvases is buggy in that the code is not displayed. I added a comment in the file about things that don't work. A main function is the next thing to try anyway.

If no one does the turtledemo changes, I probably will soon.

----------
versions: +Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21882>
_______________________________________


More information about the Python-bugs-list mailing list