> > as [rst_directive( > > arguments=(1,0,1), > > options={'class': directives.class_option}, > > content=1 > > ) > > ] def admonition(*args): > > return make_admonition(nodes.admonition, *args) > > I suppose so, but a generic function attribute decorator > would do just as well. IOW, it doesn't have to be > "rst_directive", just "attributes" would do fine. I like rst_directive(), because it's more specific -- it would catch mistakes earlier. E.g. if you misspelled argumnets, attributes() would have no clue about it; but rst_directive() should have specific keywords. --Guido van Rossum (home page: http://www.python.org/~guido/)
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