[Q] ctypes callbacks with Delphi
achrist at easystreet.com
achrist at easystreet.com
Mon Oct 20 03:24:06 EDT 2003
More information about the Python-list mailing list
Mon Oct 20 03:24:06 EDT 2003
- Previous message (by thread): [Q] ctypes callbacks with Delphi
- Next message (by thread): [Q] ctypes callbacks with Delphi
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Jimmy Retzlaff wrote: > > > The last I heard, pexpect didn't work on Windows, but I'm certainly no > expert on it. If that still holds then things like XMLRPC and SOAP might > be options depending on how well they are supported on the Delphi side. > XMLRPC is almost trivial in Python (see xmlrpclib). You're right again. I saw that pexpect didn't work on platforms without pty, and Windows python has a pty.py module, so I guessed wrong. There are some other requirements that are presently absent from the Windows distro. I've got it working using the os.popen3 call, which seems very good for such things. Since I've got source for both ends of the pipe connections, I can be sure to flush() the file, and I don't have any timing problems (at least on Win2k and WinNT). The data is always available at the other end of the pipe after a flush() from the sender. Anyone know if this works identically on Win85, 98, XP, 2003, etc? The conversation is just a few 1-byte codes back and forth, so XMLRPC, etc, is overkill for now. os.popen3 works dandy, so far, so good. Al
- Previous message (by thread): [Q] ctypes callbacks with Delphi
- Next message (by thread): [Q] ctypes callbacks with Delphi
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list