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: Changes to content of Demo/turtle
Type: Stage:
Components: Demos and Tools Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, georg.brandl, gregorlingl, loewis
Priority: normal Keywords: patch

Created on 2010-05-04 21:32 by gregorlingl, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
turtleDemo_27b1_to_turtleDemo.diff gregorlingl, 2010-05-04 21:32 diff for a patch of turtleDemo.py
tdemo_nim.py gregorlingl, 2010-05-04 21:33 script to be added to Demo/turtle
tdemo_round_dance.py gregorlingl, 2010-05-04 21:33 script to be added to Demo/turtle
tdemo_scribble.py gregorlingl, 2010-05-04 21:34 script to replace Demo/turtle/tdemo_paint.py
Messages (5)
msg104977 - (view) Author: Gregor Lingl (gregorlingl) Date: 2010-05-04 21:32
turtleDemo.py contains a string referring to the outdated xturtle.
Should be replaced according to the submitted diff.

Moreover I'd like to propose to add to demo-scripts to the Demo-directory, namely tdemo_nim.py and tdemo_round_dance.py as well as to replace the old tdemo_paint.py by the enhanced version tdemo_scribble.py. I'll add those files subsequently.
Regards,
Gregor
msg106397 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-05-24 21:37
Hmm, it seems that round_dance and scribble don't work with the 2.7 turtle version?  I played a round of nim, but although I took the last stick, it said the computer won...
msg106398 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-05-24 21:38
Committed the turtleDemo_27b1_to_turtleDemo.diff in r81502.
msg106429 - (view) Author: Gregor Lingl (gregorlingl) Date: 2010-05-25 11:44
Yes, tdemo_raund_dance.py and tdemo_scribble.py definitely do not work
with turtle.py from Python 2.7 :-(
I submitted them expecting, that my backport of turtle.py from Python 3.1 to Python 2.7 would be accepted. But, alas, I was too late :-(((

So it's definitely ok not to add it to the turtle-demo-collection.

The case of tdemo_nim.py is a mystery to me. To be sure to use the incriminated version I downloaded it from here (bug-tracker) and tried it out several times. The malfunction you mentioned never did occur. 

Moreover I've checked the code. Ther are only two lines, 62 (initialization with None) and 72, containing assignments to the NimModel.winner attribute which decides about the winner's announcement. Cannot imagine why this shouldn't work correctly?

In fact the very same script is contained in Demo/turtle of Python 3.1.2 (in fact since 3.1) and up to now I never got any feedback about any malfunction whatever. So please could you check it once again and give some information in oder to be able to reproduce the effect mentioned? I'm definitely very interested in *know*ing if the script is faulty or not.

However, committing this demo script or not can safely be regarded as a very unimportant issue. 

Regards, Gregor
msg106712 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2010-05-29 08:46
OK, I tried again and it worked flawlessly.  Maybe I overlooked a stick last time :)

Committed in r81593.
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52862
2010-05-29 08:46:36georg.brandlsetstatus: open -> closed
resolution: fixed
messages: + msg106712
2010-05-25 11:44:56gregorlinglsetmessages: + msg106429
2010-05-24 21:38:06georg.brandlsetmessages: + msg106398
2010-05-24 21:37:13georg.brandlsetmessages: + msg106397
2010-05-04 22:42:45eric.araujosetnosy: + benjamin.peterson
2010-05-04 21:34:28gregorlinglsetfiles: + tdemo_scribble.py
2010-05-04 21:33:28gregorlinglsetfiles: + tdemo_round_dance.py
2010-05-04 21:33:05gregorlinglsetfiles: + tdemo_nim.py
2010-05-04 21:32:08gregorlinglcreate