MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / with_stem

Method with_stem

tools/python-3.11.9-amd64/Lib/pathlib.py:678–680  ·  view source on GitHub ↗

Return a new path with the stem changed.

(self, stem)

Source from the content-addressed store, hash-verified

676 self._parts[:-1] + [name])
677
678 def with_stem(self, stem):
679 """Return a new path with the stem changed."""
680 return self.with_name(stem + self.suffix)
681
682 def with_suffix(self, suffix):
683 """Return a new path with the file suffix changed. If the path

Callers

nothing calls this directly

Calls 1

with_nameMethod · 0.95

Tested by

no test coverage detected