Just to be clear, the `converter` dictionary makes sense for things like `int` and `tuple`, but using it for stuff like `Matrix` and `GeometryEntity` seems strange.
On 12 May 2012 01:17, [email protected] <[email protected]> wrote: > I just checked the source code. There is actually a _sympy_ attribute > check. Why are we then using something so strange as a global > `convert` dictionary? > > On 12 May 2012 01:14, [email protected] > <[email protected]> wrote: >> How about adding a check for a _sympify_ attribute in the sympify >> routine. It will permit 3rd party classes usage in sympy. At the >> moment if someone want something nontrivial, he needs to add it to >> sympify. But this is not pythonic. In python just having the same >> interface should be enough. >> >> It will be useful for the gsoc projects implementing new classes. It >> will be also a good training for the future move to classes that know >> how to combine with others in Add and Mul. >> >> It will also remove the need for that static global dictionary >> `convert` which seems awfully ugly to me. -- 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.
