@memoize
def user2uid(user, default=None):
    try:
        return user and pwd.getpwnam(user).pw_uid
    except __HOLE__:
        return default
dataset/ETHPy150Open jborg/attic/attic/helpers.py/user2uid