[IronPython] Telnet API
Sanghyeon Seo
sanxiyn at gmail.com
Wed Sep 27 07:49:35 CEST 2006
2006/9/27, Mark Rees <mark.john.rees at gmail.com>:
> 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
More information about the Ironpython-users
mailing list