Comment #3 on issue 2682 by ronan.l...@gmail.com: Python 3: Infite recursion with Dict
http://code.google.com/p/sympy/issues/detail?id=2682

I already felt it was a bad idea to have a "Dict" class, this reinforces my opinion. Sympy objects represent mathematical concepts but a Python dict is a programming construct which can't easily be modelled inside sympy - and even if we created such a model fully obeying the constraints placed on sympy objects, it wouldn't be usable as a dict, for performance reasons if nothing else.

However, dict maps directly to the mathematical concept of a mapping between finite sets. A sympy object modelling that would be clearly specified, would avoid the implementation headaches coming from trying to emulate dict as closely as possible while behaving differently, and would have effectively the same capabilities as a dict.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to