Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pybind/pybind11
/ strip_comments
Function
strip_comments
tests/test_factory_constructors.py:355–356 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
353
354
355
def
strip_comments(s):
356
return
re.sub(r
"\s+#.*"
,
""
, s)
357
358
359
@pytest.mark.skipif(
"env.GRAALPY"
, reason=
"Cannot reliably trigger GC"
)
Callers
6
test_reallocation_b
Function · 0.85
test_reallocation_c
Function · 0.85
test_reallocation_d
Function · 0.85
test_reallocation_e
Function · 0.85
test_reallocation_f
Function · 0.85
test_reallocation_g
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected