views:

35

answers:

1

I would like to generate Python Expect (pexpect) code automatically, does something like autoexpect exist for pexpect?

A: 

Not really, AFAIK, but you could use expy AKA expectpy, rather than pexpect, if you depend on autoexpect's functionality. There's nothing conceptually standing in the way of implementing a pyautoexpect -- it's just that, as far as I know, nobody's taken the trouble of doing it (since I've never felt a need for autoexpect myself, I'm not really surprised;-).

Alex Martelli