Try this (untested code):

for index in xrange(0, len(tmpSegs)):
   tmpSegs[index] = tmpSegs[index].split(self.ElemSep)


Thank you - that works nicely, and it's a much better replacement for
something else I was doing to achieve the same result (you know, the old
count+=1 nonsense - every day, in every way, I'm struggling to become more
and more Pythonic.)

Now, I did already (intellectually) understand this:

A list is an array of pointers to objects, what you've done here is
create a new name referencing an item in the list, then making that new
name point to something different.

Given that, however, I still don't entirely understand why the other
examples I gave DO work.  Seems it should be one or the other, no?

I'm probably just being dense, though.

Marc

-- 
www.fsrtechnologies.com
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to