MCPcopy Index your code
hub / github.com/RustPython/RustPython / with_segments

Method with_segments

Lib/pathlib/__init__.py:157–162  ·  view source on GitHub ↗

Construct a new path object from any number of path-like objects. Subclasses may override this method to customize how new path objects are created from methods like `iterdir()`.

(self, *pathsegments)

Source from the content-addressed store, hash-verified

155 self._raw_paths = paths
156
157 def with_segments(self, *pathsegments):
158 """Construct a new path object from any number of path-like objects.
159 Subclasses may override this method to customize how new path objects
160 are created from methods like `iterdir()`.
161 """
162 return type(self)(*pathsegments)
163
164 def joinpath(self, *pathsegments):
165 """Combine this path with one or several arguments, and return a

Callers 15

joinpathMethod · 0.95
__truediv__Method · 0.95
__rtruediv__Method · 0.95
_from_parsed_stringMethod · 0.95
relative_toMethod · 0.95
is_relative_toMethod · 0.95
full_matchMethod · 0.95
matchMethod · 0.95
concat_pathMethod · 0.45
samefileMethod · 0.45
_from_dir_entryMethod · 0.45
resolveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected