Re: fputs

2012-06-05 Thread Rhodri James
On Tue, 05 Jun 2012 14:54:54 +0100, hassan wrote: what is the equivalent to the php fputs in python The write() method of the file object. Though if you're asking the question like that, you need to read this: http://docs.python.org/tutorial/inputoutput.html#reading-and-writing-

Re: fputs

2012-06-05 Thread Ulrich Eckhardt
Am 05.06.2012 15:54, schrieb hassan: > what is the equivalent to the php fputs in python If that fputs() is the same as C's fputs(), then write() is pretty similar. Check the documentation for files, you will surely find the equivalent. Uli -- http://mail.python.org/mailman/listinf

Re: fputs

2012-06-05 Thread Jugurtha Hadjar
On 06/05/2012 02:54 PM, hassan wrote: Dear ALL , what is the equivalent to the php fputs in python regards, Hello, Have you tried something like this (I'll be passing the filename as an argument): from sys import argv script, dest_file = argv data_to_write = raw_input() o

fputs

2012-06-05 Thread hassan
Dear ALL , what is the equivalent to the php fputs in python regards, -- http://mail.python.org/mailman/listinfo/python-list

Re: fputs in tp_print crashes under Win32

2008-11-14 Thread Gabriel Genellina
En Wed, 12 Nov 2008 08:58:05 -0200, Petr Gotthard <[EMAIL PROTECTED]> escribió: Hello, my C++ extension crashes under Win32 when the tp_print is called. It crashes with both Python 2.5.2 and 2.6. The crash occurs in system32\ntdll.dll, with exception code 0xc005. I found out that this wo

fputs in tp_print crashes under Win32

2008-11-12 Thread Petr Gotthard
Hello, my C++ extension crashes under Win32 when the tp_print is called. It crashes with both Python 2.5.2 and 2.6. The crash occurs in system32\ntdll.dll, with exception code 0xc005. I found out that this works fine: int ulonghandle_print(RtiULongHandleObject *v, FILE *fp, int flags) {