Status: Valid
Owner: ----
CC: ronan.l...@gmail.com
Labels: Type-Defect Priority-Medium Assumptions

New issue 3585 by mrock...@gmail.com: Replace new assumptions handlers
http://code.google.com/p/sympy/issues/detail?id=3585

Currently the new assumptions system has handlers for each of the predicates (positive, real, etc....) Each of these handlers have separate static functions for all of the possible classes (Add, Mul, etc....) New classes need to register themselves in the various handlers in sympy/assumptions/handlers. This design is monolithic and, as new assumptions grows, may become more cluttered.

Why was this design originally chosen? I'm not sufficiently familiar with the computational core of assumptions to make any firm suggestions here.

What are some alternative organizations of the handler information?

1. Why not break down the handlers and move the methods into the Basic classes. E.g. why not move the AskPositiveHandler.Mul function to a Mul.ask_positive(assumptions) method?

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