what's the general way of separating classes?

John Salerno johnjsal at NOSPAMgmail.com
Mon Mar 20 16:34:08 EST 2006


I V wrote:

> Now, in your code you can do:
> 
> import package
> 
> c = package.C1()
> 
> If you hadn't included the lines in __init__.py, you would have to
> write:
> 
> import package
> 
> c = package.class1.C1()
> 

Ah, this makes sense! Thanks! :)



More information about the Python-list mailing list