Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ rstrip
Function
rstrip
imperative/python/megengine/traced_module/expr.py:32–35 ·
view source on GitHub ↗
(s: str, __chars: str)
Source
from the content-addressed store, hash-verified
30
31
32
def
rstrip(s: str, __chars: str):
33
__chars = re.escape(__chars)
34
s = re.sub(r
"^(?P<left>.*?)(?:%s)+$"
% __chars,
"\g<left>"
, s)
35
return
s
36
37
38
def
get_suffix_name(prefix: str, name: str):
Callers
nothing calls this directly
Calls
1
sub
Method · 0.45
Tested by
no test coverage detected