code: def constraints(self):
          
          try:
              return self._constraints
          except AttributeError:
              self._constraints = ConstraintDict()
              return self._constraints
docs: Constraints applied to the population.