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

Method as_posix

Lib/pathlib/__init__.py:325–328  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

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

Callers 11

__repr__Method · 0.95
as_uriMethod · 0.95
create_archiveFunction · 0.80
__init__Method · 0.80
generateFunction · 0.80
test_repr_commonMethod · 0.80
test_as_posix_commonMethod · 0.80
test_equivalencesMethod · 0.80
_lib_prefix_strippedFunction · 0.80
_lookup_last_updatedFunction · 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