Ok, Alok, I had a closer look at your example and the bisect module in Python.
In my example, a dict replaces bisect. The dict is limited, in that once a parent at the same level as an above parent appears, the above parent vanishes from consideration. But in this case, maybe that works to our advantage? Could you tell me about your motivation for using bisect? -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d86fb040-1d59-492d-8b7c-50dc5cf67d96%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
