Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bpython/bpython
/ peel_off_string
Function
peel_off_string
bpython/curtsiesfrontend/parse.py:103–109 ·
view source on GitHub ↗
(s: str)
Source
from the content-addressed store, hash-verified
101
102
103
def
peel_off_string(s: str) -> tuple[dict[str, Any], str]:
104
m = peel_off_string_re.match(s)
105
assert m, repr(s)
106
d = m.groupdict()
107
rest = d[
"rest"
]
108
del d[
"rest"
]
109
return
d, rest
Callers
1
parse
Function · 0.85
Calls
1
match
Method · 0.80
Tested by
no test coverage detected