On Tue, Jun 5, 2012 at 10:32 PM, Sergiu Ivanov
<[email protected]> wrote:
> Thank you, Stefan, Matthew and Tom for your quick responses!
>
> On Tue, Jun 5, 2012 at 7:02 PM, Tom Bachmann <[email protected]> wrote:
>>
>> I think the most basic consideration is this: if you want to ever pass your
>> data structures around in sympy, then they should inherit from Basic, and
>> then using existing sympy implementations is almost always less trouble.
>> Thus the only reason ever not to use sympy data structures (in my opinion)
>> is if they are completely internal to your algorithms, and of temporary
>> nature. Anything else will likely cause trouble, when various parts of sympy
>> make assumptions on how your objects can be treated. As you observe, you
>> will get many things, like hashing or subs, essentially for free.
>
> Thank you for the explanation!  I guess it's been influential :-)
>
> I don't yet know whether I'll need the features Basic provides, so
> I'll probably go for FiniteSet.

Oh wow, it has just occurred to me that what I'm actually trying to
store are key-value pairs, and that I want a dictionary :-D

Sorry for taking your time :-( Thanks again for your help!

Sergiu

-- 
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.

Reply via email to