def _checksetseen(what, seen):
    "checks and sets the obj id in seen"
    if what in seen:
        return True
    seen.add(what)
    return False
checks and sets the obj id in seen
recipes/Python/551788_Transactionable_Objects_reloaded/recipe-551788.py