MCPcopy Index your code
hub / github.com/cool-RR/PySnooper / __new__

Method __new__

tests/mini_toolbox/pathlib.py:802–810  ·  view source on GitHub ↗

Construct a PurePath from one or several strings and or existing PurePath objects. The strings and path objects are combined so as to yield a canonicalized path, which is incorporated into the new PurePath object.

(cls, *args)

Source from the content-addressed store, hash-verified

800 )
801
802 def __new__(cls, *args):
803 """Construct a PurePath from one or several strings and or existing
804 PurePath objects. The strings and path objects are combined so as
805 to yield a canonicalized path, which is incorporated into the
806 new PurePath object.
807 """
808 if cls is PurePath:
809 cls = PureWindowsPath if os.name == 'nt' else PurePosixPath
810 return cls._from_parts(args)
811
812 def __reduce__(self):
813 # Using the parts tuple helps share interned path parts

Callers

nothing calls this directly

Calls 1

_from_partsMethod · 0.80

Tested by

no test coverage detected