Pythonwin: Red squiggley underline and syntax error
Colin J. Williams
cjw at sympatico.ca
Mon Feb 28 16:55:28 EST 2005
Steven Bethard wrote:
> 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
The former is generally recommended.
Colin W.
More information about the Python-list
mailing list