How Python handles classes in separate files, or should they all be in one file

I am working on a framework for testing some command line utilities. I want to create several classes for easier storage of various types of information.

Python is completely new to me, so I'm not sure how you can handle this. Do you save all your classes in one file using the main script or can you split them into your own files and use them in your main script.

What is the paradigm for how you create multiple classes and use them in one script?

Duplicate How many python classes to put in one file

+5
source share
3 answers

" , script?"

import ?

+2

, , . , , . .

+2

I am distributing functionality to individual files, as this makes sense using a modular approach.

0
source

All Articles