[C++-sig] Details of Boost.Python Py_Finalize issue? (original) (raw)
Ravi lists_ravi at lavabit.com
Wed Aug 5 04:33:39 CEST 2009
- Previous message: [C++-sig] Details of Boost.Python Py_Finalize issue?
- Next message: [C++-sig] Details of Boost.Python Py_Finalize issue?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sunday 02 August 2009 11:44:22 Haoyu Bai wrote:
So could anyone share your experience with this issue, provide some test case or anymore information about this issue? I will try to solve it.
I haven't been able to spend any time on this. But the general approach I wanted to check is as follows:
Test 1 (to check registry operation):
- Use an example which embeds (not extends) python.
- Register a type X to be converted to C++ type XC.
- Perform some operations to verify that step 2 works.
- Call PyFinalize.
- Restart python vising PyInit...
- Check that X does not convert to XC.
Test 2 (to check object cleanup):
- Hold weak pointers to some shared_ptr objects exposed to python.
- Call PyFinalize.
- Ensure that all the weak_ptrs point to deleted objects.
Let me think about this some more. Please try pinging Dave A directly to make sure he has no tests for you to try.
Regards, Ravi
- Previous message: [C++-sig] Details of Boost.Python Py_Finalize issue?
- Next message: [C++-sig] Details of Boost.Python Py_Finalize issue?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]