On 2/8/23 08:25, Weatherby,Gerard wrote:
No.
I interpreted your query as “is there something that can read docstrings
of dunder methods?”
Have you tried the Sphinx specific support forums?
https://www.sphinx-doc.org/en/master/support.html
Yes. I've posted to both the -user and -dev group
-list@python.org
Subject: Re: Tool that can document private inner class?
*** Attention: This is an external email. Use caution responding, opening
attachments or clicking on links. ***
On 2/7/23 14:53, Weatherby,Gerard wrote:
> Yes.
>
> Inspect module
>
> import inspect
>
>
On 2/7/23 14:53, Weatherby,Gerard wrote:
Yes.
Inspect module
import inspect
class Mine:
def __init__(self):
self.__value = 7
def __getvalue(self):
/"""Gets seven"""
/return self.__value
mine = Mine()
data = inspect.getdoc(mine)
for m in inspect.getmembers(mine):
if '__getvalue' in m[0]:
#x27;__getvalue' in m[0]:
d = inspect.getdoc(m[1])
print(d)
From: Python-list on
behalf of Ian Pilcher
Date: Tuesday, February 7, 2023 at 3:34 PM
To: python-list@python.org
Subject: Tool that can document private inner class?
*** Attention: This is an external email. Use
I've been banging my head on Sphinx for a couple of days now, trying to
get it to include the docstrings of a private (name starts with two
underscores) inner class. All I've managed to do is convince myself
that it really can't do it.
See https://github.com/sphinx-doc/sphinx/issues/11181.
Is t