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

Method relative_to

Lib/zipfile/_path/__init__.py:433–434  ·  view source on GitHub ↗
(self, other, *extra)

Source from the content-addressed store, hash-verified

431 return self.glob(f'**/{pattern}')
432
433 def relative_to(self, other, *extra):
434 return posixpath.relpath(str(self), str(other.joinpath(*extra)))
435
436 def __str__(self):
437 return posixpath.join(self.root.filename, self.at)

Callers 1

extract_module_nameFunction · 0.95

Calls 2

strFunction · 0.85
joinpathMethod · 0.45

Tested by

no test coverage detected