Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #34362

Re: question about importing a package

References <4e72a337-07a2-4759-9960-3e8dab7f1e5c@googlegroups.com>
Date 2012-12-06 16:18 +1100
Subject Re: question about importing a package
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.545.1354771085.29569.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Dec 6, 2012 at 3:58 PM, Matt <matt@woodridgeadvisors.com> wrote:
> I have about 30 modules in my package (foos and bars) and I don't want 30 lines at the top of each file that uses this package. What am I doing wrong?

Not necessarily wrong, but definitely something to query: WHY do you
have thirty modules in your package? How big are your source files -
could you simply merge them into a single module?

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

question about importing a package Matt <matt@woodridgeadvisors.com> - 2012-12-05 20:58 -0800
  Re: question about importing a package Chris Angelico <rosuav@gmail.com> - 2012-12-06 16:18 +1100
  Re: question about importing a package alex23 <wuwei23@gmail.com> - 2012-12-05 22:30 -0800
  Re: question about importing a package Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-12-06 06:54 +0000
  Re: question about importing a package Matt <matt@woodridgeadvisors.com> - 2012-12-06 08:50 -0800
    Re: question about importing a package Terry Reedy <tjreedy@udel.edu> - 2012-12-06 15:44 -0500

csiph-web