943,741 Members | Top Members by Rank

Ad:
  • Python Discussion Thread
  • Unsolved
  • Views: 791
  • Python RSS
Sep 23rd, 2009
0

Difference between cTurtle and turtle

Expand Post »
please tell me that there is a difference because i've spent an entire week figuring out how to make cTurtle work. Now that I have succeeded, both modules appears to have the same functions.

Please tell me that there is a difference
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
i are smart is offline Offline
14 posts
since Sep 2009
Sep 24th, 2009
0

Re: Difference between cTurtle and turtle

I've never used turtle before, but that looks similar to Pickle and cPickle. The difference between those two is that since python is kinda slow, they redid the Pickle library with C (cPython) to make it alot faster.
Reputation Points: 12
Solved Threads: 15
Junior Poster in Training
Mathhax0r is offline Offline
64 posts
since Aug 2009
Sep 27th, 2009
0

Re: Difference between cTurtle and turtle

please tell me that there is a difference because i've spent an entire week figuring out how to make cTurtle work. Now that I have succeeded, both modules appears to have the same functions.

Please tell me that there is a difference
Thing is THEY DO BOTH DO THE SAME, cTurtle is a reimplementation of turtle but its done in C instead of python thus making it faster, I recommend trying this

Python Syntax (Toggle Plain Text)
  1. try:
  2. import cTurtle as turtle
  3. except ImportError:
  4. import turtle

this will import cTurtle as turtle if cTurtle is installed, if its not it just imports turtle.
Reputation Points: 35
Solved Threads: 22
Junior Poster
ov3rcl0ck is offline Offline
113 posts
since Sep 2009
Sep 27th, 2009
0

Re: Difference between cTurtle and turtle

cTurtle.py has nothing to do with C. It is simply someones hack of the turtle.py with a few extra methods added. See the beginning of file cTurtle.py for details. You can also run it, as it has a built-in demo.

It comes in two versions, one for Python2 and another for Python3.

In similar fashion, there is also the module frog, here you can use a picture of a frog or anything you like, and it has even sound effects. Great for entertaining kids of any age! See:
http://www.daniweb.com/forums/post95...tml#post953952
Last edited by Ene Uran; Sep 27th, 2009 at 6:21 pm.
Reputation Points: 625
Solved Threads: 211
Posting Virtuoso
Ene Uran is offline Offline
1,704 posts
since Aug 2005
Sep 28th, 2009
0

Re: Difference between cTurtle and turtle

hmm, my bad. Most modules beginning with C are reimplementations in C, they do this for quite a few modules.
Reputation Points: 35
Solved Threads: 22
Junior Poster
ov3rcl0ck is offline Offline
113 posts
since Sep 2009
Sep 28th, 2009
0

Re: Difference between cTurtle and turtle

Those modules are often written by instructors in colleges to keep their students from simply copying existing code, spreading confusion for the rest of us! There is a similar module out called graphics.py, that is a wrapper for Tkinter. Again nothing but a pain in the butt.
Reputation Points: 625
Solved Threads: 211
Posting Virtuoso
Ene Uran is offline Offline
1,704 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Python Forum Timeline: Bug in latest version of plot.py (wx version 2.8)...
Next Thread in Python Forum Timeline: Need help with printing





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC