Some internal functions are decorated by @needs_host or other decorators, and thus lose their ability to be introspected, including by Sphinx autodoc. This makes me sad.
Thankfully, the decorator module has ways to work around this, and looks quite useful. It will add another external dependency but I don't think that's enough of a drawback to be a big concern.
See also an email to me from Matt Wilson dated 2009-09-09 about @needs_host, which is where he informed me about the module in question.
Originally submitted by Jeff Forcier (bitprophet) on 2009-11-11 at 11:49pm EST
Jeff Forcier (bitprophet) posted:
On the one hand, I do hate the broken autodoc. On the other, I don't think a tertiary release is the time to add new dependencies. Bumping this to 1.0.
on 2010-05-27 at 08:33pm EDT
Axel Rutz (aexl) posted:
on 2010-07-10 at 07:53pm EDT
We're already using @wraps, this is something different that it cannot solve by itself, unfortunately.
on 2010-07-11 at 09:30pm EDT
Bumping to 2.x since it adds a new external dependency.
Changelog re #103, re #748, fixes #748
I can confirm that this works well for the intended use case -- I am using it in a work related codebase in the exact same manner.
Torn on whether to add it to Fab before 2.x -- on the one hand it represents a wholly new dependency, which is arguably backwards incompat. On the other hand, we've had to change the SSH lib dependency back and forth a few times, which is arguably as (if not more) disruptive, so there is precedent.
May I humbly suggest that if the auto-documentation was desired in 2011 still isn't working yet, perhaps it's time for an alternate approach to improving the docs? Manual documentation (gasp!) or another doc-generator that parses documentation in a template?
Here it is 5 years later and the docs still aren't clear on which positional argument to put() is which (#1452). That seems like a basic thing to address. Even some clearer examples would do the trick in that case:
Instead, the current example provides no clue to which arg is which:
Without waiting for a big-picture fix so targeted improvements like this could be helpful.