def pwd_from_name(name):
 global _uid_to_pwd_cache, _name_to_pwd_cache
 (entry, cached) = _cache_key_value(pwd.getpwnam, name, _name_to_pwd_cache)
 if (entry and (not cached)):
  _uid_to_pwd_cache[entry.pw_uid] = entry
 return entry

def pwd_from_name ( name ) : global _uid_to_pwd_cache , _name_to_pwd_cache ( entry , cached ) = _cache_key_value ( pwd . getpwnam , name , _name_to_pwd_cache ) if ( entry and ( not cached ) ) : _uid_to_pwd_cache [ entry . pw_uid ] = entry return entry
return password database entry for name .