c macros in python.

noagbodjivictor at gmail.com noagbodjivictor at gmail.com
Sun May 6 17:01:20 EDT 2007


Hey,

I'm writing a script to generate code. I'm a bit tired of typing
outfile.write(....). Does python have a way to c-like macros? Every
instance of o(...) in the code will be replaced by outfile.write(...)?




More information about the Python-list mailing list