This pull request makes the behaviour of `element_sort_fn` in `core/sets.py` consistent with that of `sort_key` in all SymPy classes.
This pull request also makes exception handling in `element_sort_fn` more specific. You can merge this Pull Request by running: git pull https://github.com/scolobb/sympy finiteset-sort_key-furtherfix Or you can view, comment on it, or merge it online at: https://github.com/sympy/sympy/pull/1368 -- Commit Summary -- * In sympy.core.sets, make element_sort_fn always return a valid sort_key. * Make element_sort_fn catch only TypeError and AttributeError. -- File Changes -- M sympy/core/sets.py (6) -- Patch Links -- https://github.com/sympy/sympy/pull/1368.patch https://github.com/sympy/sympy/pull/1368.diff --- Reply to this email directly or view it on GitHub: https://github.com/sympy/sympy/pull/1368 -- You received this message because you are subscribed to the Google Groups "sympy-patches" 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-patches?hl=en.
