[Tutor] How long can a line be for readline() or readlines() ??
Andrei Kulakov
ak@silmarill.org
Thu, 08 Nov 2001 18:41:00 -0500
On Thu, Nov 08, 2001 at 06:04:57PM -0500, Schmidt, Allen J. wrote:
> Is there a limit to the length of an individual line when using readlines()
> or readline() ?
>
> I get errors when a line exceeds 2048 characters.
Hm, I just tried it, I don't get any errors. I tried a line of 3000
characters:
...
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n'
>>> len(a)
3001
I used readline() to read it in, with Python 2.1.1.
>
> Thanks
>
> Allen
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
--
Cymbaline: intelligent learning mp3 player - python, linux, console.
get it at: cy.silmarill.org