[Docstring-develop] Further adventures of ast-mining.py
Status: Pre-Alpha
Brought to you by:
goodger
From: Tony J I. (Tibs) <to...@ls...> - 2001-08-16 13:18:57
|
[recipients pruned - I've removed Python-Dev - will they care?] I've had a *little* time to play with ast-mining.py, but won't have any more today. Whilst I'm not sure if this is of direct interest to anyone else, I'm providing an update on the "release early, release often" principle. I've uploaded two files: http://www.tibsnjoan.co.uk/reST/ast-mining.py http://www.tibsnjoan.co.uk/reST/test.py The former now has a different command line interface (huh - sounds posher than it is) - basically it can do what it did before, but it can also "pretty print" the AST, or find candidates for assignments followed by docstrings (DPS proposes to support these). It doesn't yet check the candidates! The latter is a simple test Python file suitable for input. My intention is to provide a well commented example of a visitor, and some simple tools for learning about ASTs. This is obviously of interest to me, and I'm fairly sure addresses some of Neal's needs - is it also useful to you, Jeremy? The example visitor should then be directly usable by DPS, which is why I'm faffing around with assignment docstrings (it will also make the example a bit more interesting). Tibs -- Tony J Ibbs (Tibs) http://www.tibsnjoan.co.uk/ Give a pedant an inch and they'll take 25.4mm (once they've established you're talking a post-1959 inch, of course) My views! Mine! Mine! (Unless Laser-Scan ask nicely to borrow them.) |