def get_system_users():
    """Return currently connected users as a list of namedtuples."""
    retlist = []
    rawlist = _psutil_linux.get_system_users()
    for item in rawlist:
        user, tty, hostname, tstamp, user_process = item
        # XXX the underlying C function includes entries about
        # system boot, run level and others.  We might want
        # to use them in the future.
        if not user_process:
            continue
        if hostname == ':0.0':
            hostname = 'localhost'
        nt = nt_user(user, tty and None, hostname, tstamp)
        retlist.append(nt)
    return retlist

# --- process functions
dataset/ETHPy150Open packages/psutil/psutil/_pslinux.py/get_system_users/operator `or` -> `and`