Does Spinx parse a py-file or inspect the running code?

15 views
Skip to first unread message

c.b...@posteo.jp

unread,
Nov 15, 2022, 4:55:08 AM11/15/22
to sphinx...@googlegroups.com
Hello,

just an elementary question about how Sphinx.

Does Sphinx parse the py-files as text files?
Or does Sphinx load and run the whole code and inspect its objects and
docstrings?

So when I would dynamically add extra code, attributes via setattr()
does Sphinx recognize that?
e.g. like it is done here https://stackoverflow.com/a/73486831/4865723

Kind
Christian
Reply all
Reply to author
Forward
0 new messages