2 ms·
Years ago I had a job task that involved potentially writing a lot of expect code. Pretty quickly I found and switched to pexpect[0]. As someone who likes pytho
by fooblat 6y ago
Years ago I had a job task that involved potentially writing a lot of expect code. Pretty quickly I found and switched to pexpect[0]. As someone who likes python I found it worlds ahead in terms of usability and I would suggest anyone considering expect today should also take a look at pexpect.
0. https://pypi.org/project/pexpect/ https://pypi.org/project/pexpect/
- crististm 6y agoI used both _extensively_ and 'worlds ahead' is an exaggeration. Pexpect makes perfect sense if you need expect semantics in Python without using a FFI Otherwise, I feel that a reason for favoring pexpect is because Python is not TCL and 'a lot of code' means using others' libraries for which you could not find TCL alternatives.