[sf-lug] ThinkPython Ex 15.4

jim jim at well.com
Sat Feb 28 11:00:32 PST 2009



   monday can we discuss the syntax 
from <THIS> import <THAT> 
   per alex' example 
from World import * 


On Thu, 2009-02-26 at 11:52 -0800, Alex Kleider wrote:
> 
> For those of you who might be following Asheesh's Python classes and struggling (as am I) with the excercises:
> 
>    The code Allan Downey tells us to use in Chapter 15, Ex.4 seems not to work:
> 
> from World import *
> world = World()
> wait_for_user()
> 
> The wait_for_user function is defined in TurtleWorld, not in World.
> 
> Substituting TurtleWorld  for World in the two places that it appears, seems to solve the problem.
> 
> 
> 
> 
> 
> 
>       
> 
> 
> _______________________________________________
> sf-lug mailing list
> sf-lug at linuxmafia.com
> http://linuxmafia.com/mailman/listinfo/sf-lug
> 





More information about the sf-lug mailing list