This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Alexey Kazantsev, Vadim Markovtsev, amaury.forgeotdarc, martin.panter, pitrou, serhiy.storchaka
Date 2015-03-21.11:41:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426938069.12.0.121481760982.issue23720@psf.upfronthosting.co.za>
In-reply-to
Content
Alexey, you're right that in this case (bug2.py) the cyclic GC is a bit less friendly than it was. It's not obvious there's a way to change that without introduce a lot of complexity. I'll try to take a look some day, although others may help too :-)

That said, my advice in msg238680 still holds. When you're writing a Python wrapper around a C or C++ library with well-defined ownership relationships, I think you should enforce those in the Python wrapper as well (that's my experience with llvmlite, anyway).
History
Date User Action Args
2015-03-21 11:41:09pitrousetrecipients: + pitrou, amaury.forgeotdarc, martin.panter, serhiy.storchaka, Vadim Markovtsev, Alexey Kazantsev
2015-03-21 11:41:09pitrousetmessageid: <1426938069.12.0.121481760982.issue23720@psf.upfronthosting.co.za>
2015-03-21 11:41:09pitroulinkissue23720 messages
2015-03-21 11:41:08pitroucreate