On Mon, Jan 12, 2009 at 10:28 AM, Terry Brown
>
>
> Can you explain again what's wrong with the if not stack: return None
> approach?


top-level positions have an empty stack.

Take a look at p.__nonzero__ and p.__bool__.  The proper test is against
p.v, not p.stack.

Rather than returning None, you could return c.nullPosition().

Edward

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to