Re: Newbi Q: Recursively reverse lists but NOT strings?

2007-10-14 Thread Victor B. Gonzalez
be wrong but from a quick glance you'll need to end it for sure when dealing with recursion. maybe also trying to reverse using the iterator function reversed() or this shortcut may help e.g, 'abc'[::-1] -> 'cba'. good luck! -- Best Regards Victor B. Gonzalez -- http://mail.python.org/mailman/listinfo/python-list

Re: "SyntaxError: Non-ASCII character '\xc2'...", was Re: Is there a nicer way to do this?

2007-10-05 Thread Victor B. Gonzalez
On Friday 05 October 2007 3:33:43 am Peter Otten wrote: > Victor B. Gonzalez wrote: > > anyhow, I keep getting "SyntaxError: Non-ASCII character '\xc2'..." on > > line 5. anyone know what this is? > > I too had that problem with KNode. Leading space consist

Re: Is there a nicer way to do this?

2007-10-04 Thread Victor B. Gonzalez
he dictionary is unnecessary but I may be wrong. anyhow, I keep getting "SyntaxError: Non-ASCII character '\xc2'..." on line 5. anyone know what this is? I couldn't run the script but from looking at it, it appears you're making some pointless keys when indexes may b