mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-01-19 21:23:26 +08:00
For example keep_alive<0,1>() should work where the return value may sometimes be None. At present a "Could not allocate weak reference!" exception is thrown. Update documentation to clarify behaviour of keep_alive when nurse is None or does not support weak references.
34 lines
616 B
Plaintext
34 lines
616 B
Plaintext
Allocating parent.
|
|
Allocating child.
|
|
Releasing child.
|
|
<example.Parent object at 0x10eb726c0>
|
|
Releasing parent.
|
|
|
|
Allocating parent.
|
|
Allocating child.
|
|
Releasing child.
|
|
<example.Parent object at 0x10eb726c0>
|
|
Releasing parent.
|
|
|
|
Allocating parent.
|
|
Allocating child.
|
|
<example.Parent object at 0x10eb726c0>
|
|
Releasing parent.
|
|
Releasing child.
|
|
|
|
Allocating parent.
|
|
Allocating child.
|
|
<example.Parent object at 0x10eb726c0>
|
|
Releasing parent.
|
|
Releasing child.
|
|
|
|
Allocating parent.
|
|
<example.Parent object at 0x10eb726c0>
|
|
Releasing parent.
|
|
|
|
Allocating parent.
|
|
<example.Parent object at 0x10eb726c0>
|
|
Releasing parent.
|
|
|
|
Terminating..
|