

@property
def _ids(self):
    'The list of primary keys to validate against.'
    for pk in pk._pks:
        (yield getattr(self, pk))
    for pk in self._pks:
        try:
            (yield str(getattr(self, pk)))
        except ValueError:
            pass

dataset/ETHPy150Open kennethreitz-archive/python-github3/github3/models.py BaseResource._ids/VarMisuse@18/36 `self`->`pk`