Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RustPython/RustPython
/ real_len
Function
real_len
Lib/_pyrepl/completing_reader.py:58–59 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
56
57
58
def
real_len(s: str) -> int:
59
return
len(stripcolor(s))
60
61
62
def
left_align(s: str, maxlen: int) -> str:
Callers
nothing calls this directly
Calls
2
len
Function · 0.85
stripcolor
Function · 0.85
Tested by
no test coverage detected