Hi,

On Fri, 6 May 2022 at 10:40, <[email protected]> wrote:
>
> 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.

Thanks for the report.

I  think is best to report any issue over
https://github.com/twisted/pydoctor/issues

Cheers

-- 
Adi Roiban
_______________________________________________
Twisted mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/twisted.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/5PILGO7NJU3N3KU5EBMEATM2KD7GYMZI/
Code of Conduct: https://twisted.org/conduct

Reply via email to