Utils files in Python

114 Views Asked by At

In C++ codebases you tend to extract out certain commonly used small functions to a utils.h header file for reusability and to avoid defining them as methods when they are not class methods per se.

What would be the equivalent practice in Python? Just create a utils.py and import that?

0

There are 0 best solutions below