chiark / gitweb /
documentation/python: properly handle recursively imported modules.
authorVladimír Vondruš <mosra@centrum.cz>
Thu, 11 Jul 2019 23:03:42 +0000 (01:03 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 14 Jul 2019 17:11:08 +0000 (19:11 +0200)
commitc59381496a3743d4ee2221505d84eff610ce7d2d
tree57ff79fe8ad1f6912815cad1f135140f0fafdf2b
parent13c51a5d3dd0fbe2869e6d86e1ec81cc33789b99
documentation/python: properly handle recursively imported modules.

Basically converting the crawl to be breadth-first instead of
depth-first and maintaining a set of crawled modules to ensure they're
never visited again.

This could happen with classes as well, but it's rarer -- one would need
to add it to __all__ twice (or once and then it gets discovered
implicitly) etc. For now I'm simply asserting, will revisit in case it
proves to be an actual problem.
documentation/python.py
documentation/test_python/inspect_recursive/inspect_recursive.a.html [new file with mode: 0644]
documentation/test_python/inspect_recursive/inspect_recursive.first.html [new file with mode: 0644]
documentation/test_python/inspect_recursive/inspect_recursive.html [new file with mode: 0644]
documentation/test_python/inspect_recursive/inspect_recursive/__init__.py [new file with mode: 0644]
documentation/test_python/inspect_recursive/inspect_recursive/first.py [new file with mode: 0644]
documentation/test_python/inspect_recursive/inspect_recursive/second.py [new file with mode: 0644]
documentation/test_python/test_inspect.py