[Python-Dev] Single .py file contains submodule?

M.-A. Lemburg mal@lemburg.com
Fri, 31 May 2002 09:42:38 +0200


Kevin Butler wrote:
> Guido wrote:
>  > (Barry prefers that there's only one class per file; fortunately I
>  > don't have that hangup. :-)
> 
> So how about a single .py file containing a module and one-or-more 
> submodules? (Sounds like Barry will definitely not like it...  ;-) )
> 
> Specifically, I wanted to allow easy isolated import of the PyUnit 
> assertion functions, something like:
> 
> from unittest.assertions import *

That's bad style (at least for modules which don't only include
constants). Why would you want to enable this ?

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/
Meet us at EuroPython 2002:                 http://www.europython.org/