Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _getpwuid
Function
_getpwuid
Lib/netrc.py:15–20 ·
view source on GitHub ↗
(uid)
Source
from the content-addressed store, hash-verified
13
14
15
def
_getpwuid(uid):
16
try
:
17
import
pwd
18
return
pwd.getpwuid(uid)[0]
19
except
(ImportError, LookupError):
20
return
f
'uid {uid}'
21
22
23
class
NetrcParseError(Exception):
Callers
1
_security_check
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected