-
-
Notifications
You must be signed in to change notification settings - Fork 165
mangle_docstring is called on already-processed docstrings #134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Here there seem to be four manglings of the |
This is not all due to
|
The second processing of the foobar method appears to be harmless: it's called in processing the The remaining unnecessary and harmful (double-processing) calls are due to |
Some tracing tells me that Do these domains remain relevant? I can't see any reference to them in the numpy or scipy repositories currently. I see that you commented on their likely irrelevance in 2012. Can we drop them without deprecation if they're unlikely used and causing weird behaviour (and duplicated work)?? |
@astrofrog fwiw, merging #135 might also give multiplicative speedups if lots of time was spent in numpydoc |
Fixed in #135 |
It seems that due to
wrap_mangling_directives
, even in our simple example code, we're visiting the same docstring multiple times, and running our mangling over an already-mangled docstring. This is creating especial rubbish with reference renaming, but we've certainly not tested the effect of this on any of our docscrape apparatus either!With the current example.py and docs, we get calls to mangle_docstrings with:
I show hashes and line counts to illustrate that we have mangled the dosctring, at least in some cases.
When I add a class
Foobar
and its methodfoobar
, we get the following invocations ofmangle_docstring
:The text was updated successfully, but these errors were encountered: