My Python annoyances

Thorsten Kampe thorsten at thorstenkampe.de
Fri May 4 15:11:21 EDT 2007


* Ben Collver (Fri, 04 May 2007 06:40:50 -0700)
> Thorsten Kampe wrote:
> > He was using /Windows/ Python in Cygwin *chuckle*... Windows Python 
> > says Ctrl-Z because it doesn't know that it's been run from bash where 
> > Ctrl-Z is for job control.
> > 
> > And the lesson we learn from that: if you're using Windows Python use 
> > a Windows shell. If you're using a Cygwin shell use Cygwin Python - 
> > unless you know what you're doing (which he wasn't).
> 
> The reason I tried to do this: Cygwin python lacks _winreg, but I wanted 
> to SSH into Cygwin to run this script.
> 
> I suppose the folks who know what they are doing probably stick to 
> wscript and WMI for this sort of stuff.

No, they stick to Python and WMI for this sort of stuff:
http://tgolden.sc.sabren.com/python/wmi.html



More information about the Python-list mailing list