This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: telnetlib.read_until: float req'd for timeout
Type: Stage:
Components: Documentation Versions: Python 2.3
process
Status: closed Resolution: works for me
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, cba037
Priority: normal Keywords:

Created on 2003-05-08 18:27 by cba037, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Messages (4)
msg15921 - (view) Author: Craig Allen (cba037) Date: 2003-05-08 18:27
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).
msg15922 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2003-05-13 14:20
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?
msg15923 - (view) Author: Craig Allen (cba037) Date: 2003-05-14 15:59
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
msg15924 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2003-05-14 16:47
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.)
History
Date User Action Args
2022-04-10 16:08:39adminsetgithub: 38467
2003-05-08 18:27:33cba037create