3 [ @ s$ d Z dZdd Zdd Zdd ZdS ) z7Compute a resolution order for an object and its bases Zrestructuredtextc C sL i }g }x>t | D ]2}x,t |D ] }||kr d||<