Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1022575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T11:29:12+00:00 2026-05-16T11:29:12+00:00

I am considering to start using Pexpect. On Pexpects homepage I find this: Q:

  • 0

I am considering to start using Pexpect. On Pexpects homepage I find this:

Q: Why not just use Expect?

A: I love
it. It’s great. I has bailed me out of
some real jams, but I wanted something
that would do 90% of what I need from
Expect; be 10% of the size; and allow
me to write my code in Python instead
of TCL. Pexpect is not nearly as big
as Expect, but Pexpect does everything
I have ever used Expect for.

There is a 10% difference between Pexpect and Expect. So my question is what is this 10% difference. What is it that Expect can do that Pexpect can’t.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T11:29:13+00:00Added an answer on May 16, 2026 at 11:29 am

    That question (“What is it that Expect can do that Pexpect can’t“) is a bit misleading. It’s not that Pexpect can’t do things that Expect can; it’s that Expect has a lot of extra support to make this kind of programming easier.

    As an example, take the interact command which lets the user interact directly with the spawned process. In Pexpect, that’s all interact does. (And that may be sufficient for your needs, as you say.) In contrast, Expect’s interact has support for detecting patterns during an interact, hooking together multiple spawned processes, etc. Of course, you can do all this by coding it yourself. But your code will be longer – sometimes a lot longer because you’ll essentially have to rewrite your own interact, you’ll have to debug it, etc. In fact, you may have encountered these situations already but not realized how much simpler the equivalent Expect code would be.

    Of course, the extra support may be more than offset by your preference for Python. 😛

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm considering using Powershell scripts for triggers on our Perforce server. Unfortunately, even on
I am considering using virtual inheritance in a real-time application. Does using virtual inheritance
This is related to my another post multithreading issue with wx.TextCtrl (or underlying GTK+)
I know this could be a subjective question, but I want to know your
I would like to start developing my cocoa app on two different machines. I'm
I know that using Regular expressions to parse or manipulate HTML/XML is a bad
So the following code is possible in C# to start a new thread in
So I've read over several questions here about the pros and cons of using
I have a question regarding stepper motor control while using the Microchip TCP/IP stack.
I have a problem regarding to the software deployment. We're using JBoss 4.2.3. Please

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.