]> gitweb.michael.orlitzky.com - sage.d.git/commit
eja: move the element constructor into the parent algebra class.
authorMichael Orlitzky <michael@orlitzky.com>
Fri, 2 Aug 2019 23:18:11 +0000 (19:18 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Fri, 2 Aug 2019 23:18:11 +0000 (19:18 -0400)
commit634dab08d886610e41dfd363a0a608a9405abe8e
tree96f200c0e37e1c538ef7ebe6f924d7e8cb8af369
parent3b7cb5424101ae1cde5f868d672dd613763fc439
eja: move the element constructor into the parent algebra class.

Instead of using the element's __init__(), we're now using the
algebra's _element_constructor_() method that only gets called
after the parent tries to coerce the argument and fails. This
is somewhat cleaner because we don't have to handle the "usual"
case.
mjo/eja/eja_algebra.py
mjo/eja/eja_element.py