I've started splitting a class among into several files/folders and have found that there are functions that are only needed to organize code and would never be called by anything higher-up in the class hierarchy (much less by the user). Is there someway I can import these into just the functions they're needed in rather than needing to import them into the class definition?
I'm getting a bit annoyed in my testing of getting the AttributeError: 'MyClass' object has no attribute 'my_low_level_function'?
import fooin some function, and then in that function, dofoo.whatever(), although note, that is goign to makefoolocal to the function. But again, I'm just guessing at what you are talking about. It would help if you created a minimal reproducible example to illustrate what you mean exactlyclass MyClass: from some_methods import method1. Hacky as all hell, but it "works".