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

Method __bytes__

Lib/pathlib/__init__.py:193–196  ·  view source on GitHub ↗

Return the bytes representation of the path. This is only recommended to use under Unix.

(self)

Source from the content-addressed store, hash-verified

191 return str(self)
192
193 def __bytes__(self):
194 """Return the bytes representation of the path. This is only
195 recommended to use under Unix."""
196 return os.fsencode(self)
197
198 @property
199 def _str_normcase(self):

Callers

nothing calls this directly

Calls 1

fsencodeMethod · 0.80

Tested by

no test coverage detected