Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __new__
Method
__new__
Lib/pathlib/__init__.py:1503–1505 ·
view source on GitHub ↗
(cls, *args, **kwargs)
Source
from the content-addressed store, hash-verified
1501
1502
if
os.name !=
'nt'
:
1503
def
__new__(cls, *args, **kwargs):
1504
raise
UnsupportedOperation(
1505
f
"cannot instantiate {cls.__name__!r} on your system"
)
Callers
nothing calls this directly
Calls
1
UnsupportedOperation
Class · 0.70
Tested by
no test coverage detected