Re: Structure of packages

2008-01-09 Thread Scott David Daniels
Ben Fisher wrote: > I am trying to learn the best way to do intra-package references. My > package looks like this: ... > I had thought that "from PackageName.b import *" would work In an attempt to hand oyu a net, rather than an answer: Try using command line: python -v whatever.py You

Re: Structure of packages

2008-01-09 Thread Raymond Hettinger
[Ben Fisher] > I am trying to learn the best way to do intra-package references. IMO, the email package is a stellar example of best practices using packages. > I have layered the dependencies so that a depends on b, >b depends on c, and c depends on d. For the most part, I think packages tend

Re: Structure of packages

2008-01-09 Thread Jean-Paul Calderone
On Wed, 9 Jan 2008 15:07:16 -0500, Ben Fisher <[EMAIL PROTECTED]> wrote: >I am trying to learn the best way to do intra-package references. My >package looks like this: > >PackageName >__init__.py >/a >__init__.py > a.py >... >/b >__init__.py >... >

Structure of packages

2008-01-09 Thread Ben Fisher
I am trying to learn the best way to do intra-package references. My package looks like this: PackageName __init__.py /a __init__.py a.py ... /b __init__.py ... /c __init__.py ... /d __init__.py ... I have l