Re: [sage-devel] Re: Inverse of discrete functions

2013-09-30 Thread Nathann Cohen
> 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/5

[sage-devel] Re: Inverse of discrete functions

2013-09-27 Thread Volker Braun
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/ On

[sage-devel] Re: Inverse of discrete functions

2013-09-26 Thread Jason Grout
On 9/26/13 3:16 AM, Maarten Derickx wrote: I would definitely use such a construction. +1. I often wish for something like this when relabeling a graph, for example. Jason -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from

[sage-devel] Re: Inverse of discrete functions

2013-09-26 Thread Maarten Derickx
I would definitely use such a construction. It would be nice to have a data structure that behaves like 1:1 correspondence or as in your case 1 to many correspondances instead of needing to keep two dictionaries. It would make life a lot easier because you loose the need of a double administra