[Tutor] robots question
Steven D'Aprano
steve at pearwood.info
Fri Sep 17 03:28:04 CEST 2010
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
More information about the Tutor
mailing list