MCPcopy Index your code
hub / github.com/python/cpython / with_segments

Method with_segments

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

Source from the content-addressed store, hash-verified

1288 self.session_id = session_id
1289
1290 def with_segments(self, *pathsegments):
1291 return type(self)(*pathsegments, session_id=self.session_id)
1292 p = P(self.base, session_id=42)
1293 self.assertEqual(42, p.absolute().session_id)
1294 self.assertEqual(42, p.resolve().session_id)

Callers 2

test_with_segmentsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected