On Fri, 17 Sep 2010 01:57:48 am Evert Rol wrote:
> > As a exercise from this book ( Thinking like a computer scientist )
> > I have to make this programm on this
> > page(http://openbookproject.net/thinkcs/python/english2e/ch12.html)
> > Exercise 11
> >
> > #
> > # robots.py
> > #
> > from gasp import *
>
> Argh!
> Is that really in the book?
> Bad book, bad.
>
> You can just "import gasp" and type "gasp.<function>" a few times.

Settle down!

import * does have its uses. It should be considered advanced 
functionality, and people (especially beginners) should beware of 
over-using it, but there's no need to treat it as forbidden.



-- 
Steven D'Aprano
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to