Should I write a book on Python Metaprogramming ?
Michael Hudson
mwh at python.net
Mon May 5 14:51:47 EDT 2003
Jack Diederich <jack at performancedrivers.com> writes:
> > VII. Code generators and code parsers.
> Do people really write code generators in python that output python?
I have, but a loong time ago...
> I'm not sure I see the point if you have metaclasses and inspection.
Heh, my code generators were crude (but effective) performance hacks.
It was certainly possible to do what I wanted another way, but not
with the same level of efficiency... I wrote a longish explanation of
what I was up to, lemme look... here:
http://groups.google.com/groups?selm=m31ziyfy28.fsf_-_%40atrus.jesus.cam.ac.uk
Clearly the Right Answer to problems like this is better code
generation, not these kinds of hacks...
Cheers,
M.
--
Now this is what I don't get. Nobody said absolutely anything
bad about anything. Yet it is always possible to just pull
random flames out of ones ass.
-- http://www.advogato.org/person/vicious/diary.html?start=60
More information about the Python-list
mailing list