Will pexpect updates for python3 compatibility be pushed upstream?

200 views
Skip to first unread message

Patrick

unread,
Mar 14, 2011, 11:21:57 AM3/14/11
to winpexpect
Hi Geert

I'm trying to get Noah's pexpect working under python 3.2 but to no
avail. As you've done some porting work to pexpect inside winpexpect,
I'm wondering, whether your version should be suitable to replace
Noah's pexpect. Do you know, by chance, whether Noah might ever port
his version to python 3.x?

Best regards,

Patrick

Geert Jansen

unread,
Mar 14, 2011, 1:01:13 PM3/14/11
to winpe...@googlegroups.com, Noah Spurrier
Hi Patrick,

I had some occasional emails with Noah but due to lack of time (both
sides to be honest), it never got anywhere. Noah told me he was
interested in merging my port, which would include my Python 3 fixes.

I've copied Noah on this email. It seems there's still plenty of
interest in pexpect and so it would be great if we would revive the
community.

To answer your question: right now, winpexpect does not work on *nix
because i had to comment out a few imports. A merge should not be
difficult though.

Regards,
Geert

Patrick Brunner

unread,
Mar 14, 2011, 1:41:40 PM3/14/11
to winpe...@googlegroups.com
Hi Geert

A merge of pexpect and winexpect, under whatever label, and compatible to Python 3, would be ideal. To be honest, I haven't used either apart from very simple examples, but I'm quite eager to move most of my TCL+Except-based scripts, some of which are targetted to Win32, and others to Linux, to Python 3. Not that I dislike TCL or Libes' Expect, both are very useful indeed, but I prefer Python for its readability, especially for people which might have to maintain those scripts at a later moment and are not very affine to TCL. ;-)

So, if either you or Noah eventually will take the effort, I would be a very happy and thankful user.

Just in case: if I should manage to merge it myself, wrapping up the platform-specific stuff in appropriate if/else blocks, would there be a chance to adapt the setup script and include the changes in winexpect?

Best regards,

Patrick
Reply all
Reply to author
Forward
0 new messages