[Tutor] length of a string? Advice saught

Emile van Sebille emile at fenx.com
Thu Jan 28 07:27:52 CET 2010


On 1/27/2010 2:25 PM Kirk Z Bailey said...
> I wrote a program to let me edit web-pages without bothering with ftp;
> it loads up a simple form with the page guts in it, and saves it through
> another script. Until yesterday, EditMyPage worked fine. Alas, I had a
> rather long winded page and it truncated it- completely omitted the last
> 1/4 of the original file, creating big problems. Looking everything
> over, I can only conclude that somehow python 2.23 (ok, it's an old
> server; shoot me, I'm poor) has a limit on a simple string variable. Can
> I declare the variable as a long winded version and save the trouble, or
> do AI need a witchdoctor here?
>

Also consider that closing a connection before the buffer is fully 
flushed can cause loss of data.

Emile



More information about the Tutor mailing list