telnet.read_until() from telnetlib

sp1d3rx at gmail.com sp1d3rx at gmail.com
Tue Aug 30 22:37:38 CEST 2005


but the 'expect' gives you more details about the failure... read the
documentation on telnet objects here:
"http://docs.python.org/lib/telnet-objects.html".
It says this specifically:
"If end of file is found and no text was read, raise EOFError.
Otherwise, when nothing matches, return (-1, None, text) where text is
the text received so far (may be the empty string if a timeout
happened). "




More information about the Python-list mailing list