Re: Pythonwin: Red squiggley underline and syntax error

2005-02-28 Thread Neil Hodgson
Steven Bethard:

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

   You can see what characters are being used with the View | Whitespace
command which shows tabs as arrows and spaces as centred dots.

   Neil


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Pythonwin: Red squiggley underline and syntax error

2005-02-28 Thread Colin J. Williams
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.
--
http://mail.python.org/mailman/listinfo/python-list


Re: Pythonwin: Red squiggley underline and syntax error

2005-02-28 Thread Steven Bethard
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
--
http://mail.python.org/mailman/listinfo/python-list


Pythonwin: Red squiggley underline and syntax error

2005-02-28 Thread Brent W. Hughes
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!

Brent


-- 
http://mail.python.org/mailman/listinfo/python-list