The read_until (and I assume expect) method(s) have an optional timeout parameter; a float is required but this is not documented; use of an integer causes an exception. Documentation needs to mention the need for a float value (alternatively, telnetlib should convert to a float).
Logged In: YES user_id=11375 I can't replicate this; an integer value seems to work fine for me. Can you provide a test program that manifests the problem? And what exception and traceback do you get?
Logged In: YES user_id=84913 The exception, which my program catches, was 'a float is required'. No traceback was provided. I have been unable to reproduce this error in a test program. It is worth noting that subsequent to reporting this "bug", I have upgraded from 2.3a1 to 2.3b. It looked to me that the timeout argument is passed to select.select, which apparently expects a float, yet an integer does not seem to cause an exception. Since we don't seem to be able to reproduce the error, I think we could close this bug. Do I need to do that? Craig Allen
Logged In: YES user_id=11375 I seem to recall that there were some changes related to PyArg_ParseTuple's format codes during the alpha cycle; perhaps they caused your problem and have since gotten fixed. I'll close the bug. (Unless you're granted admin privileges on the Python SourceForge project, you can't close it.)