Do you separate scope of function definition somehow, e.g. defining sub-functions in the main function closure or moving them into separate module?
Pythons catch is except btw :)
this depends on what framework, structure, etc, you are using. If I need to implement a concept with multiples features and it is quite complex, I create a module for him.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.