MCPcopy 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
355def 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_bFunction · 0.85
test_reallocation_cFunction · 0.85
test_reallocation_dFunction · 0.85
test_reallocation_eFunction · 0.85
test_reallocation_fFunction · 0.85
test_reallocation_gFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected