nntplib body question
Martin v. Löwis
martin at v.loewis.de
Wed Jun 4 00:30:25 EDT 2003
"Peter Melchart" <peter at melchart.com> writes:
> is there any way to load only the first x lines of a post body via nntplib?
> with read callbacks or something similar?
To my knowledge, the NNTP protocol does not support such a query. So
regardless of what the API is, you always have to fetch the entire
body, and throw away all lines you don't want.
Now, keeping only the first x lines of a string is certainly possible
in Python.
Regards,
Martin
More information about the Python-list
mailing list