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

Method as_posix

Lib/pathlib/__init__.py:327–330  ·  view source on GitHub ↗

Return the string representation of the path with forward (/) slashes.

(self)

Source from the content-addressed store, hash-verified

325 return parts
326
327 def as_posix(self):
328 """Return the string representation of the path with forward (/)
329 slashes."""
330 return str(self).replace(self.parser.sep, '/')
331
332 @property
333 def _raw_path(self):

Callers 11

__repr__Method · 0.95
as_uriMethod · 0.95
create_archiveFunction · 0.80
__init__Method · 0.80
test_repr_commonMethod · 0.80
test_as_posix_commonMethod · 0.80
test_equivalencesMethod · 0.80
root_relative_pathFunction · 0.80

Calls 2

strFunction · 0.85
replaceMethod · 0.45

Tested by 3

test_repr_commonMethod · 0.64
test_as_posix_commonMethod · 0.64
test_equivalencesMethod · 0.64