Multiple classes in a Python module

Posted by ralphL on Stack Overflow See other posts from Stack Overflow or by ralphL
Published on 2010-04-14T01:57:27Z Indexed on 2010/04/14 2:02 UTC
Read the original article Hit count: 288

Filed under:

I'm very new to Python (I'm coming from a JAVA background) and I'm wondering if anyone could help me with some of the Python standards. Is it a normal or "proper" practice to put multiple class in a module? I have been working with Django and started with the tutorials and they place their database model classes in the same module. Is this something that is normally done or should I stick with 1 class per module? Is their a reason I would do one over the other?

Hope I'm being clear and not to generic. Thanks to everyone in advance!

© Stack Overflow or respective owner

Related posts about python