[Python-bugs-list] [ python-Bugs-734806 ] telnetlib.read_until: float req'd for timeout
SourceForge.net
noreply@sourceforge.net
Wed, 14 May 2003 08:59:10 -0700
Bugs item #734806, was opened at 2003-05-08 14:27
Message generated for change (Comment added) made by cba037
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=734806&group_id=5470
Category: Documentation
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Craig Allen (cba037)
Assigned to: Nobody/Anonymous (nobody)
Summary: telnetlib.read_until: float req'd for timeout
Initial Comment:
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).
----------------------------------------------------------------------
>Comment By: Craig Allen (cba037)
Date: 2003-05-14 11:59
Message:
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
----------------------------------------------------------------------
Comment By: A.M. Kuchling (akuchling)
Date: 2003-05-13 10:20
Message:
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?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=734806&group_id=5470