MCPcopy Create free account
hub / github.com/pybind/pybind11 / C

Class C

tests/test_class.py:384–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382 assert m.pointers_equal(b.get_self(), b)
383
384 class C(m.ProtectedB):
385 def __init__(self):
386 m.ProtectedB.__init__(self)
387
388 def foo(self):
389 return 0
390
391 c = C()
392 assert c.foo() == 0

Callers 1

Calls

no outgoing calls

Tested by 1