pydoctor: Problems with sub-modules and namespaces
![](https://secure.gravatar.com/avatar/148a51ecc80531586e1f5530d64b988a.jpg?s=120&d=mm&r=g)
Hello, I have a packaged named "buhtzology" [1]. So you can do "import buhtzology" and then "buhtzology.generate_filepath()". But on the level of the filesystem the "def generate_filepath" is not in "buhtzology/__init__.py" but "buhtzology/_buhtzology.py". Everything in "_buhtzology.py" is imported into the namespace of "buhtzology" when importing "buhtzology". This is the relevant part of the "__init__.py" file. from ._buhtzology import * The problem is that "generate_filepath()" doesn't appear as "buhtzology.generate_filepath()" in the pydoctor generated html files but as "buhtzology._buhtzology.generate_filepath()". You ask why I do it like this? It is because buhtzology has some packages that should load by default (e.g. _buhtzology) and some that don't (buhtzology.bandas). I also tried to manipulate the __all__ variable which works in Doxygen in that case but no in pydoctor. [1] -- <https://codeberg.org/buhtz/buhtzology/src/branch/develop>
![](https://secure.gravatar.com/avatar/eba6eb871de2549c7447a8701352cd35.jpg?s=120&d=mm&r=g)
Hi, On Fri, 6 May 2022 at 10:40, <c.buhtz@posteo.jp> wrote:
Thanks for the report. I think is best to report any issue over https://github.com/twisted/pydoctor/issues Cheers -- Adi Roiban
![](https://secure.gravatar.com/avatar/148a51ecc80531586e1f5530d64b988a.jpg?s=120&d=mm&r=g)
Dear Adi, thanks for the feedback.
I think is best to report any issue over https://github.com/twisted/pydoctor/issues
I opened it here https://github.com/twisted/pydoctor/issues/565
![](https://secure.gravatar.com/avatar/eba6eb871de2549c7447a8701352cd35.jpg?s=120&d=mm&r=g)
Hi, On Fri, 6 May 2022 at 10:40, <c.buhtz@posteo.jp> wrote:
Thanks for the report. I think is best to report any issue over https://github.com/twisted/pydoctor/issues Cheers -- Adi Roiban
![](https://secure.gravatar.com/avatar/148a51ecc80531586e1f5530d64b988a.jpg?s=120&d=mm&r=g)
Dear Adi, thanks for the feedback.
I think is best to report any issue over https://github.com/twisted/pydoctor/issues
I opened it here https://github.com/twisted/pydoctor/issues/565
participants (2)
-
Adi Roiban
-
c.buhtz@posteo.jp