[Python-ideas] Re: Suggestion for behaviour change import mechanics

2019-10-29 Thread mereep
Yes :) That looks similiar to my problem, which i fixed for the moment of writing by renaming one folder. Basically, I would prefer if Python would not treat nth-level import fails different than first-level fails. Might seem like a small thing, but in my opinion it would: - keep the behaviou

[Python-ideas] Re: Suggestion for behaviour change import mechanics

2019-10-29 Thread mereep
Thanks for that hints! This namespace module concept indeed looks like that is kind of the behaviour that would like to achieve. I will take a look at that. On the first scroll in the docs, that doesn't seem to map to the namespace-concepts that are known from C++ or PHP, where you explicitly

[Python-ideas] Re: Suggestion for behaviour change import mechanics

2019-10-29 Thread mereep
I noticed some different (strange) behaviour when handling projects like that. Imagine following folder structure # project_folder # a_submodule * a.py * b.py * __init__.py * main.py - content a.py: class Foo: pass - content b.py: from a import Foo foo = Foo() content