Issue1240332

classification
Title: telnet.read_until timeout does not translate
Type: Severity: normal
Components: Jythonc compiler Versions:
Milestone:
process
Status: closed Resolution: invalid
Dependencies: Superseder:
Assigned To: Nosy List: amak
Priority: low Keywords:

Created on 2005-07-18.15:31:00 by anonymous, last changed 2007-05-18.22:27:29 by amak.

Messages
msg1004 (view) Author: Nobody/Anonymous (nobody) Date: 2005-07-18.15:31:00
If a timeout value is used in the "telnet.read_until"
method from the "telnetlib" module, it does not
translate correctly when a jar file is compiled.
msg1005 (view) Author: Alan Kennedy (amak) Date: 2007-05-18.22:27:29
This bug should be closed.

The telnetlib module never worked on jython before now; telnetlib imports and relies on the select module, which has never been available in jython. Here is an interpreter transcript from jython 2.1.

Jython 2.1 on java1.4.2_13 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> import telnetlib
Traceback (innermost last):
  File "<console>", line 1, in ?
  File "C:\jython21\Lib\telnetlib.py", line 42, in ?
ImportError: no module named select
>>>

The select module is now implemented and will be soon be available in jython 2.2 or 2.3: the submitter should 

1. Attempt their use case again when the select module is implemented in jython.
2. If there is still a problem, please report it here.
3. Ideally, any problem should be illustrated with a small piece of interpreted code.

(It is probably not possible to guarantee correct compilation of any code by jythonc if that code does not run successfully in the interpreter. Although I could be wrong on this).
History
Date User Action Args
2005-07-18 15:31:00anonymouscreate