On Thu, Feb 11, 2010 at 3:38 PM, Terry Brown <[email protected]> wrote:
>
> c.sortSiblings has changed somewhat recently.  It used to sort tuples 
> (headstring, v), but now it just sorts vs.  No problem, I suspect todo.py 
> priority sort is the only thing in the rest of the codebase that uses it, so 
> I can change that to match.
>
> But it also has this code:
>
>         if cmp: newChildren.sort(cmp,key=key)
>         else:   newChildren.sort(key=key)
>
> Does it make any sense to provide both cmp and key?  It doesn't seem to work, 
> when todo.py priority sort provides cmp.  Changing it to just 
> newChildren.sort(cmp) restores the todo.py sort function.

I think this was done to fix a Python 3.x porting problem.  Iirc, the
args differ on 2.x/3.x.

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