[PyQt] Python and smartpointers

Arve Knudsen arve.knudsen at gmail.com
Fri Jun 13 14:16:09 BST 2008


In our C++ application we typically use smartpointers to manage
pointers automatically, but there's the problem of transferring such
objects to Python. What I'd like to do is pass smartpointers to
Python, so that one plays along with the C++ memory management scheme,
but treat these as their managed objects (i.e., not having to worry
about the presence of smartpointers). Is there a typical pattern for
accomplishing this, or should I go about it completely differently?

Thanks,
Arve


More information about the PyQt mailing list