Python-list Digest, Vol 67, Issue 192
Ryniek90
ryniek90 at gmail.com
Sun Apr 12 18:38:17 EDT 2009
> ------------------------------------------------------------------------
>
> Temat:
> Re: OverflowError while sending large file via socket
> Od:
> Paul Rubin <http://phr.cx@NOSPAM.invalid>
> Data:
> 12 Apr 2009 15:28:43 -0700
> Do:
> python-list at python.org
>
> Do:
> python-list at python.org
>
>
> Ryniek90 <ryniek90 at gmail.com> writes:
>
>> When i wanted to send an .iso file of 4GB length, i had traceback:
>> "OverflowError: requested number of bytes is more than a Python string
>> can hold"
>>
>
> You're not supposed to put the 4GB all in one string. Open the
> socket and send smaller packets through it.
>
>
> ------------------------------------------------------------------------
Ok, so i will split that data for smaller files. But i've still haven't
got answer for question: "What's the max. length of string bytes which
Python can hold?
More information about the Python-list
mailing list