Newbie pythoner, with bizzare problem

Grant Edwards ge at nowhere.none
Sat Jul 22 17:39:52 EDT 2000


In article <8lcef2$fbn$0 at 216.39.151.169>, Donn Cave wrote:
>
>| You're also right that
>|   from os import *
>| is, of course, universally deprecated.
>
>So where do so many new programmers learn to do this? This is a
>serious question.  Is there some tutorial out there that leads
>them astray?

I've run across numerous examples in module documentation where
"from foobar import *" is used (e.g. the socket module examples).

This might lead a new programmer to use the same idiom with
other modules.  

"from foobar import *" makes example code look cleaner, but I
think it might promote bad habits.

-- 
Grant Edwards                   grante             Yow!  My LESLIE GORE record
                                  at               is BROKEN...
                               visi.com            



More information about the Python-list mailing list