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

Method with_segments

Lib/test/test_pathlib/test_pathlib.py:1299–1300  ·  view source on GitHub ↗
(self, *pathsegments)

Source from the content-addressed store, hash-verified

1297 self.session_id = session_id
1298
1299 def with_segments(self, *pathsegments):
1300 return type(self)(*pathsegments, session_id=self.session_id)
1301 p = P(self.base, session_id=42)
1302 self.assertEqual(42, p.absolute().session_id)
1303 self.assertEqual(42, p.resolve().session_id)

Callers 2

test_with_segmentsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected