Q: sort's key and cmp parameters

Paul Rubin http
Sat Oct 3 05:39:36 EDT 2009


Paul Rubin <http://phr.cx@NOSPAM.invalid> writes:
>       c = compare(tree1['left'], tree2['left'])

Of course this recursive call crashes if either branch is None.
Oh well, I'll stop trying to correct it since I'm sure you get the idea.



More information about the Python-list mailing list