Re: Modules, Packages and Developer Confusion. Oh My!

2006-11-10 Thread Steve Holden
[EMAIL PROTECTED] wrote: > I think I'm still missing something in how python is handling packages > and it's mixing me up. I have a package with three files (modules?) > like so: > > OPS:\ > __init__.py > model.py > search.py > > To hide more details of the package structure, I import model

Re: Modules, Packages and Developer Confusion. Oh My!

2006-11-10 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > from model import * > from search import * > > def create_connection(): > # details are unimportant for this example > > > When I try to use the create_connection function in model, I get errors > when I use it as a global function ( just create_connection()). impo