move max_exponent to be a property (max(self))
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 22 Apr 2019 12:53:47 +0000 (13:53 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Mon, 22 Apr 2019 12:53:47 +0000 (13:53 +0100)
commitfd63a4f5a785a96fd893abac7dd4e1ce6c943f85
tree4f19be684610f6c822b10247afc24cf8fe1c6153
parent8db8263f3b0f12fe03d7a88e87eb1dfaccda6d43
move max_exponent to be a property (max(self))
replace if tests with assert (single lines each)
remove self.max_exponent test on every element, use max(self) as property
set-ify the incoming argument exponents and add zero explicitly to it
pass that in to the set constructor, no need for accumulating in a temporary
TLB/src/LFSR2.py