i come back to python; just some questions
Emile van Sebille
emile at fenx.com
Sun Jul 14 12:23:30 EDT 2002
ppcdev
> i was working on an old pentium II and wanted to send a very long
> string in the USER parameter but it made my computer bug.. is it
> normal???
>
> str='a'; r=range(1024);
> for x in r[:]:
> str=str+str
>
I can't imagine a computer it wouldn't be normal on. ;-) This will
create a string of length 2**1024, a result that starts 1797... and
continues for another ~296 numbers. I imagine what you probably want is
a string of 1024 characters?
str = 'a'*1024
HTH,
--
Emile van Sebille
emile at fenx.com
---------
More information about the Python-list
mailing list