Bash shell to Python shell?

Grant Edwards invalid at invalid.invalid
Mon Sep 28 06:08:45 CEST 2009

On 2009-09-28, Chris Rebert <clp2 at> wrote:
> On Sun, Sep 27, 2009 at 8:13 PM, edwithad <edwithad at> wrote:
>> I am sure you have not read a question this basic in some time, but I am
>> curious. Using Linux I open a terminal window and type: python.
>> Does Bash Shell go away and to become a Python Shell, or is it still a Bash
>> Shell with Python running inside? Thanks in advance.
> The latter. Press Ctrl+D or enter exit() or quit() to exit Python and
> return to bash.

Bash doesn't really "go away".  It's still there, it just hands
over the terminal to the python interpreter and then sits and
waits for the python interpreter to exit.  At that point the
Bash shell (the same one as before) resumes.


More information about the Python-list mailing list