[issue10176] telnetlib.Telnet.read_very_eager() performance

2010-10-26 Thread ptz
ptz ppt...@gmail.com added the comment: As David suggested, it indeed seems to be a case of timing. When telnetlib.Telnet(...) returns, the server still doesn't have the data cooked, and read_very_eager() fetches nothing. So nothing here fails as such, it's just that my 0 experience

[issue10176] telnetlib.Telnet.read_very_eager() performance

2010-10-23 Thread ptz
New submission from ptz ppt...@gmail.com: In Python 2.4, Assuming we've imported telnetlib, the following works: f = telnetlib.Telnet(some_text_based_server) f.read_very_eager() The last call outputs the text that the server outputs upon connection (e.g. login: ). However, if we

[issue10176] telnetlib.Telnet.read_very_eager() performance

2010-10-23 Thread ptz
ptz ppt...@gmail.com added the comment: Strange. I was certain that I tried inserting a time.sleep() in the function and it still didn't work, but I tried it just now and it does work as expected. Sorry, and thanks for your answer, at least I learned something