Alexander Belopolsky wrote: > Benji York <benji <at> zope.com> writes: >>Here's the idea: when a footnote is referenced in prose, execute the >>code associated with the footnote at that point. For example: >> > > Another natural place for the referenced code is the __test__ dictionary. > Using that has an advantage of not clobbering the display in the default > pydoc viewer. I'm not quite sure what you're suggesting. A guess: put the code that isn't to be seen in the __test__ dict with a string key being the name of the footnote? I don't think a ReST processor would like that much. It would see references to footnotes that are never defined. Or perhaps you're suggesting a non-ReST mechanism for the references? Also, for many of the use-cases we have, we do want the code in the test, just not in such a prominent place, and not repeated more than once. -- Benji York Senior Software Engineer Zope Corporation
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4