M
michael
Hello,
Apologies if this seems like a trivial question, but it would help me
with my python, coming from a Java background.
What is the preferred naming convention for a .py file, that contains a
class ? For example, if I have one class (MyClass), I wouldn't really
want to put it in myclass.py, as I'd end up referencing myclass.MyClass
(unless I use the import-from which I'm trying to avoid).
I'm also not sure about putting several unrelated classes in the same
..py file - It could just be Java talking, but it seems odd.
Thank you for any ideas.
Michael.
Apologies if this seems like a trivial question, but it would help me
with my python, coming from a Java background.
What is the preferred naming convention for a .py file, that contains a
class ? For example, if I have one class (MyClass), I wouldn't really
want to put it in myclass.py, as I'd end up referencing myclass.MyClass
(unless I use the import-from which I'm trying to avoid).
I'm also not sure about putting several unrelated classes in the same
..py file - It could just be Java talking, but it seems odd.
Thank you for any ideas.
Michael.