On Wednesday, December 28, 2005 Fredrik Lundh wrote:
> WinXP or WinXP+Cygwin ?  here's what I get:

Normal WinXP, without Cygwin.

>>python
> Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> ^Z

>>

>>python
> Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> ^D
>   File "<stdin>", line 1
>     ?
>     ^
> SyntaxError: invalid syntax
>>>>

I tracked this down to having IPython installed. I was able to get the exact
behaviour you've got by disabling the "readline" package from "site-packages".

I have a solution proposal (I have no idea if it's feasible): why not
intercept "exit" and "quit" in the interpreter command line parser? A
simple regexp should do. Is the interactive interpreter implemented in
Python or on the C side?

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to