Pythonwin: Red squiggley underline and syntax error

Steven Bethard steven.bethard at gmail.com
Mon Feb 28 14:24:30 EST 2005


Brent W. Hughes wrote:
> I copied and pasted some text into my Python code and then Pythowin put a 
> red squiggley underline under the two tabs at the beginning of the line. 
> What does that mean?  I've tried various things including deleting the white 
> space in front of the line and reinserting the tabs.  I've also tried 
> retyping the entire line.  Sometimes, I can get the red line to go away but 
> when I try to run the program, it gives me a syntax error on the line that 
> had the red underline.  Help!

You've probably mixed tabs with spaces in your indentation somewhere. 
Either replace all tabs with spaces or replace all spaces with tabs.

STeVe



More information about the Python-list mailing list