>> a) Yes, use native dicts as much as possible. Trying to improve over a core >> data structure that's getting unlimited love from the language team doesn't >> sound like a winning idea to me :-) > > Yes, this is the main point in Python. > >> b) Keep the sorted list of keys in a separate member variable.
Are you aware that there is now an ordered dictionary in python? It was backported to 2.7.3, I believe. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to sympy@googlegroups.com. To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.