I agree. Being relatively new to python, i was not sure of quirks so i posted 
the original code.  

I did find the real issue, as I found another loop that was not being executed 
properly.

It turns out that if the indent started with spaces and ended with tabs, 
neither eclipse or command line execution would complain.  where as if the 
indent begins with tabs and has spaces in the middle the tools will complain of 
indentation issues.

i have found that the vi plugin for python is the culprit here.  when the 
plugin does block indentation, the result is indents that begin with spaces.  
if i disable the vi plugin and use the regular eclipse editor these issues go 
away.

with other languages i always expand tabs to spaces.  the vi plugin does do 
this properly.  if i change all indents to be spaces only will python behave?  
i inherited a good deal of the code that i am using, which is tab based.

thanks kevin


On Wednesday, November 21, 2012 11:00:50 PM UTC-6, Chris Angelico wrote:
> On Thu, Nov 22, 2012 at 3:41 AM, Kevin T  wrote:
> 
> > I went back and tried version a again, blam it is/does work now ?!?!?
> 

> 
> 
> This is why the Short, Self-Contained, Correct Example is so
> 
> important. See http://sscce.org/ for some info on that. I often find
> 
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to