> This has been brought up on the Python mailinglists before. Really you want a > database where two or more columns are indexed. If anybody wants to work on > that please read the previous Python discussions first. Here is one possible > implementation: > > http://code.activestate.com/recipes/576968/
Ahahah. No, I swear that I never wanted a database with two or more columns indexed :-P The code you linked to is actually pretty nice. Though I don't know, I would have prefered to be able to type something like d.inv[3] to get the preimage of 3 rather than having to call a function. Plus in my case I need the preimages to be lists as my functions are not bijection. We could tune it when the dictionary is created with a flag, though, which would swear that the double dictionary will always stay a bijection ;-) Nathann -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.