Re: python equivalent for fputc

2006-08-30 Thread Fredrik Lundh
Putty wrote: > I'm porting a program a friend wrote in C over to Python and I've run > into a little hang-up. The C program writes characters out to a file. > I'm 99% sure that a conversion is going on here as well. I know for a > fact that it's taking a number and turning it into a character.

Re: python equivalent for fputc

2006-08-30 Thread Putty
Thanks, John. That's exactly what I was looking for! John Machin wrote: > Putty wrote: > > I'm porting a program a friend wrote in C over to Python and I've run > > into a little hang-up. The C program writes characters out to a file. > > I'm 99% sure that a conversion is going on here as well.

Re: python equivalent for fputc

2006-08-30 Thread John Machin
Putty wrote: > I'm porting a program a friend wrote in C over to Python and I've run > into a little hang-up. The C program writes characters out to a file. > I'm 99% sure that a conversion is going on here as well. I know for a > fact that it's taking a number and turning it into a character.

Re: python equivalent for fputc

2006-08-30 Thread bearophileHUGS
Putty wrote: > I'm porting a program a friend wrote in C over to Python and I've run > into a little hang-up. The C program writes characters out to a file. > I'm 99% sure that a conversion is going on here as well. I know for a > fact that it's taking a number and turning it into a character. >

python equivalent for fputc

2006-08-30 Thread Putty
I'm porting a program a friend wrote in C over to Python and I've run into a little hang-up. The C program writes characters out to a file. I'm 99% sure that a conversion is going on here as well. I know for a fact that it's taking a number and turning it into a character. So what kind of call c