Advice on the style to use in imports
Marco Bizzarri
marco.bizzarri at gmail.com
Sat Aug 30 09:33:55 EDT 2008
On Sat, Aug 30, 2008 at 2:20 PM, Fredrik Lundh <fredrik at pythonware.com> wrote:
>
> importing objects instead of the module (namespace) they live in can cause
> all sorts of aliasing and dependency issues. avoid unless you know exactly
> what you're doing.
>
> </F>
>
Thanks Fredrik; I understand that is the underlying message of your article.
I'm just confused because PEP8 seems to suggest that the from module
import Class style is acceptable; is there a big "if you know what are
doing" before, which I'm unable to see?
Regards
Marco
--
Marco Bizzarri
http://iliveinpisa.blogspot.com/
http://notenotturne.blogspot.com/
More information about the Python-list
mailing list