[Python-Dev] Advice in stat.py

Guido van Rossum guido@zope.com
Fri, 27 Jul 2001 13:14:36 -0400

> > > Suggested usage: from stat import *
> > > 
> > > Is ths still the suggested usage?
> > 
> > I don't see why not.
> My understanding was that it's generally considered Bad Form to do this
> at module level, while doing it at function level is tricky (or a
> performance hit? whatever...) because of nested scopes.

Generally yes, but there's an explicit disclaimer "unless the module
is written for this".  And stat.py is (hence the recommendation in the

Inside a function, from ... import * is always bad form.

--Guido van Rossum (home page: http://www.python.org/~guido/)