how about: ``raise NotImplementedError('Power set not defined for: %s' % self.func) ?``