def pwd_from_uid(uid):
 global _uid_to_pwd_cache, _name_to_pwd_cache
 (entry, cached) = _cache_key_value(pwd.getpwuid, uid, _uid_to_pwd_cache)
 if (entry and (not cached)):
  _name_to_pwd_cache[entry.pw_name] = entry
 return entry

def pwd_from_uid ( uid ) : global _uid_to_pwd_cache , _name_to_pwd_cache ( entry , cached ) = _cache_key_value ( pwd . getpwuid , uid , _uid_to_pwd_cache ) if ( entry and ( not cached ) ) : _name_to_pwd_cache [ entry . pw_name ] = entry return entry
return password database entry for uid .