(self, req, arg=None)
Return only the first row of the SELECT, or None if there are no matching rows.
Return only the first row of the SELECT, or None if there are no matching rows.
Return only the first row of the SELECT or None if there are no matching rows .
def select_one(self, req, arg=None):
        """Return only the first row of the SELECT, or None if there are no matching rows."""
        try:
            return next(iter(self.select(req, arg)))
        except StopIteration:
            return None
def select_one ( self , req , arg = None ) : try : return next ( iter ( self . select ( req , arg ) ) ) except StopIteration : return None