Are classes in Python in different files?

Posted by Asaf on Stack Overflow See other posts from Stack Overflow or by Asaf
Published on 2010-05-19T09:47:35Z Indexed on 2010/05/19 9:50 UTC
Read the original article Hit count: 180

Filed under:
|
|

Much like Java (or php), I'm use to seperating the classes to files.
Is it the same deal in Python? plus, how should I name the file?
Lowercase like classname.py or the same like ClassName.py?
Do I need to do something special if I want to create an object from this class or does the fact that it's in the same "project" (netbeans) makes it ok to create an object from it?

© Stack Overflow or respective owner

Related posts about python

Related posts about class