example example.submodule submodule_func() ### A @ 0x21a5bc0 created 1 ### A @ 0x21a5bc4 created 2 ### B @ 0x21a5bc0 created via default constructor A[1] A[1] A[2] A[2] ### A @ 0x20f93b0 created 42 ### A @ 0x21a5bc0 assigned via copy assignment ### A @ 0x20f93b0 destroyed ### A @ 0x20f93d0 created 43 ### A @ 0x21a5bc4 assigned via copy assignment ### A @ 0x20f93d0 destroyed A[42] A[42] A[43] A[43] OrderedDict([(1, 'a'), (2, 'b')]) Instances not destroyed: [2, 1] ### B @ 0x21a5bc0 destroyed ### A @ 0x21a5bc4 destroyed ### A @ 0x21a5bc0 destroyed Instances not destroyed: [0, 0] Constructor values: [['1', '2', '42', '43'], []] Default constructions: [0, 1] Copy constructions: [0, 0] Copy assignments: [2, 0] Move assignments: [0, 0]