Re: Emulate a printf() C-statement in Python???

2009-03-19 Thread Mr. Z
"Andrii V. Mishkovskyi" wrote in message news:mailman.2185.1237467269.11746.python-l...@python.org... On Thu, Mar 19, 2009 at 2:43 PM, Mr. Z wrote: > I'm trying emulate a printf() c statement that does, for example > > char* name="Chris"; > int age=30; > printf("My name is %s", name); > printf("M

Re: Emulate a printf() C-statement in Python???

2009-03-19 Thread Chris Rebert
On Thu, Mar 19, 2009 at 6:13 AM, John Machin wrote: > On Mar 19, 11:52 pm, Chris Rebert wrote: >> On Thu, Mar 19, 2009 at 5:43 AM, Mr. Z wrote: >> > I'm trying emulate a printf() c statement that does, for example >> >> > char* name="Chris"; >> > int age=30; >> > printf("My name is %s", name); >

Re: Emulate a printf() C-statement in Python???

2009-03-19 Thread John Machin
On Mar 19, 11:52 pm, Chris Rebert wrote: > On Thu, Mar 19, 2009 at 5:43 AM, Mr. Z wrote: > > I'm trying emulate a printf() c statement that does, for example > > > char* name="Chris"; > > int age=30; > > printf("My name is %s", name); > > printf("My name is %s and I am %d years old.", %s, %d); >

Re: Emulate a printf() C-statement in Python???

2009-03-19 Thread Eric Brunel
Mr. Z wrote: > I'm trying emulate a printf() c statement that does, for example > > char* name="Chris"; > int age=30; > printf("My name is %s", name); > printf("My name is %s and I am %d years old.", %s, %d); > > In other words, printf() has a variable arguement list the we > all know. > > I'm tryi

Re: Emulate a printf() C-statement in Python???

2009-03-19 Thread John Machin
On Mar 19, 11:43 pm, "Mr. Z" wrote: > I'm trying emulate a printf() c statement that does, for example > > char* name="Chris"; > int age=30; > printf("My name is %s", name); > printf("My name is %s and I am %d years old.", %s, %d); > > In other words, printf() has a variable arguement list the we

Re: Emulate a printf() C-statement in Python???

2009-03-19 Thread Andrii V. Mishkovskyi
On Thu, Mar 19, 2009 at 2:43 PM, Mr. Z wrote: > I'm trying emulate a printf() c statement that does, for example > > char* name="Chris"; > int age=30; > printf("My name is %s", name); > printf("My name is %s and I am %d years old.", %s, %d); > > In other words, printf() has a variable arguement li

Re: Emulate a printf() C-statement in Python???

2009-03-19 Thread Chris Rebert
On Thu, Mar 19, 2009 at 5:43 AM, Mr. Z wrote: > I'm trying emulate a printf() c statement that does, for example > > char* name="Chris"; > int age=30; > printf("My name is %s", name); > printf("My name is %s and I am %d years old.", %s, %d); > > In other words, printf() has a variable arguement li

Emulate a printf() C-statement in Python???

2009-03-19 Thread Mr. Z
I'm trying emulate a printf() c statement that does, for example char* name="Chris"; int age=30; printf("My name is %s", name); printf("My name is %s and I am %d years old.", %s, %d); In other words, printf() has a variable arguement list the we all know. I'm trying to do this in Python... clas