Re: c macros in python.

2007-05-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Amaury Forgeot d'Arc <[EMAIL PROTECTED]> wrote: >[EMAIL PROTECTED] a écrit : >> 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

Re: c macros in python.

2007-05-07 Thread A.T.Hofkamp
On 2007-05-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > 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(...)? Just in case you do

Re: c macros in python.

2007-05-06 Thread ici
On May 7, 12:01 am, [EMAIL PROTECTED] wrote: > 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(...)? All in Python is pointer to object,

Re: c macros in python.

2007-05-06 Thread noagbodjivictor
Great python!!! -- http://mail.python.org/mailman/listinfo/python-list

Re: c macros in python.

2007-05-06 Thread John Machin
On May 7, 7:01 am, [EMAIL PROTECTED] wrote: > 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(...)? Functions and methods are first-cla

Re: c macros in python.

2007-05-06 Thread Amaury Forgeot d'Arc
[EMAIL PROTECTED] a écrit : > 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(...)? First: Python has no macro facility. But in this

c macros in python.

2007-05-06 Thread noagbodjivictor
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(...)? -- http://mail.python.org/mailman/listinfo/python-list