All Questions
2 questions
36
votes
3
answers
39k
views
Is it ok to have multiple classes in the same file in Python?
In Java and PHP (although not strictly required), you are expected to write each class on its own file, with file's name is that of the class as a best practice.
But in Python, or at least in the ...
2
votes
2
answers
1k
views
python - differences between reusable code vs. code for solving specific tasks
Reusable code (ex. libraries and frameworks) and code written to solve a specific task and not meant to be reused as a general tool (for example, code being used only by my 6 person team in a private ...