def _max_fitting_element(self, upper_limit):
no_steps = (upper_limit - self._start) // abs(self._step)<EOL>return self._start + abs(self._step) * no_steps<EOL>
Returns the largest element smaller than or equal to the limit