From: Giampaolo Rodola' <bil...@gm...> - 2008-01-12 17:27:22
|
Hi all, I noticed that the 2.2 version finally included the select module but I also noticed that asyncore and asynchat modules aren't available yet. Just for the heck of it I've tried to use the cPython asyncore.py but this is the error I get when I try to run an asyncore-based module of mine: c:\jython2.2.1>jython.bat ftpserver.py Serving FTP on 0.0.0.0:21 Traceback (innermost last): File "ftpserver.py", line 2374, in ? File "ftpserver.py", line 2370, in test File "ftpserver.py", line 2284, in serve_forever File "C:\jython2.2.1\Lib\asyncore.py", line 191, in loop File "C:\jython2.2.1\Lib\asyncore.py", line 121, in poll File "C:\jython2.2.1\Lib\select.py", line 171, in native_select File "C:\jython2.2.1\Lib\select.py", line 90, in register File "C:\jython2.2.1\Lib\select.py", line 54, in _getselectable TypeError: ("Object 'None' is not watchable", 88) Is there a reason why asyncore.py shouldn't work with select? I don't know much about jython but I'm experienced with asyncore, so I would happy to give an help, if needed. |