autocoding project proposal
dman
dsh8290 at rit.edu
Wed Jan 30 22:46:52 EST 2002
On Wed, Jan 30, 2002 at 08:50:35PM +0000, Neil Hodgson wrote:
| Brian Raven:
|
| > For example, if you need to generate code fragments to replace tags in
| > an existing template (possibly read from a file), you would need to
| > parse the existing code to establish the appropriate indent.
|
| Won't your tags already be at the appropriate indent? I'd expect input
| something like
|
| class X:
| def init(self):
| pass
| <<tagReader>>
| def writer(self, f):
| <<tagWriter>>
If you want to insert more than one LOC, you'll still need to know the
indentation level for the other lines.
If you want to easily generate code, generate LISP :-).
-D
--
The way of a fool seems right to him,
but a wise man listens to advice.
Proverbs 12:15
More information about the Python-list
mailing list