Win32 python: odd behavior when run via ssh

Steve Holden steve at
Sat Feb 2 04:40:50 CET 2008

Gabriel Genellina wrote:
> En Fri, 01 Feb 2008 22:31:06 -0200, Ross Ridge  
> <rridge at> escribió:
>> If you're using the offficial Win32 port of Python than you probably
>> want to use the Cygwin version because Win32 version doesn't support
>> readline anyways.
> I don't understand the comment. Most of the readline functionality is  
> already present on Windows XP (command history, up/down arrows, edit entry  
> with left/right arrows, choose entry from list, autocompletion, separate  
> buffers for each program...). On earlier versions you only had to load  
> doskey.exe (or at startup, and the command had existed from  
> jurasic age... That Python on Windows doesn't support specifically the GNU  
> readline utility is irrelevant.
Until you try to do something like a reverse history search using 
CTRL/R, for example, and then the limitations of the XP command window 
start to become obvious.

But it's somewhat perverse to try to run standard Windows binaries under 
Cygwin. Though it is a fine environment you get into real trouble with 
things like filename completion, since the shell completes names in the 
Cygwin filename space, and the Windows binaries can't make head nor tail 
of something like /c/Python25/python.exe.

That may well be why the Python interpreter isn't recognizing the sshd's 
pty as a terminal, too.

Steve Holden        +1 571 484 6266   +1 800 494 3119
Holden Web LLC    

More information about the Python-list mailing list