Should Dict and/or Tuple be using http://docs.python.org/library/collections.html#abcs-abstract-base-classes? From what I understand, you derive from the proper ABC, define just one or two methods, and the rest are defined for you automatically (it's supposed to be the correct way to subclass from built-in types, which doesn't work if you do it directly).
On the other hand, these are new in Python 2.6, so we might not be able to use them even if it is a good idea. Aaron Meurer On Wed, Jun 29, 2011 at 9:05 AM, Matthew Rocklin <[email protected]> wrote: > Should elements in a Tuple be sympified or _sympified or neither? I.e. do we > want Tuple(1,"hello") to contain python integers and strs or SymPy Integers > and Symbols? > I'd like to have a simple Dict or Mapping container class. Anyone care about > the name or implementation details? A start is over here > https://github.com/mrocklin/sympy/blob/Dict/sympy/core/containers.py > -Matt > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. > -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
