Re: Advice on the style to use in imports
- From: Fredrik Lundh <fredrik@xxxxxxxxxxxxxx>
- Date: Sat, 30 Aug 2008 14:20:47 +0200
Marco Bizzarri wrote:
I'm showing what I used in my current project, and will accept your
advices on how I should change them.
The style is consistently the following:
from package.subpackge.module import MyClass
Is this an accepted way to write imports? According to what I
understood in articles, I don't think so.
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>
.
- Prev by Date: Re: How to check is something is a list or a dictionary or a string?
- Next by Date: Re: Fastest way to write huge files
- Previous by thread: Re: How to place menu on the bottom
- Next by thread: Re: Advice on the style to use in imports
- Index(es):