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


Groups > comp.lang.python > #32644

Re: How to improve the usability of nested packages

From Terry Reedy <tjreedy@udel.edu>
Subject Re: How to improve the usability of nested packages
Date 2012-11-02 13:56 -0400
References <CABdB9Z5sGS4XNw5D7qvq5KciJMHHZrx8WUr4D6ZreqPEVRkCNQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3215.1351879000.27098.python-list@python.org> (permalink)

Show all headers | View raw


nested package == subpackage

> or would you maybe structure the library entirely different?

Based on my limited experience with subpackages* plus reports on this 
list about problems, such as yours, I have concluded that subpackages 
are an attractive nuisance that are generally more trouble than they are 
worth. I suggest you consider sticking with your original flat (no 
subpackage) design. (But maybe someone knows better than me how to make 
subpackages work ;-).

* In my current project, I started with all modules in subpackages but 
have since moved them into the package and deleted the subpackages.

-- 
Terry Jan Reedy

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


Thread

Re: How to improve the usability of nested packages Terry Reedy <tjreedy@udel.edu> - 2012-11-02 13:56 -0400

csiph-web