2006/9/27, Mark Rees <[EMAIL PROTECTED]>:
> Seo has a select module that workes with IronPython, but there are
> also other issues with telnetlib relating to how it's uses sys.stdin
> which I do not have time to investigate at the moment.
The intention of telnetlib's author was that it would use select on stdin
if that's possible, and use thread if it's not. Unfortunately, it checks for
sys.platform.
--- /usr/lib/python2.4/telnetlib.py
+++ Lib/telnetlib.py
@@ -536,7 +536,7 @@
def interact(self):
"""Interaction function, emulates a very dumb telnet client."""
- if sys.platform == "win32":
+ if sys.platform in ("win32", "cli"):
self.mt_interact()
return
while 1:
It still doesn't run though. Investigating.
--
Seo Sanghyeon
_______________________________________________
users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com