[issue5630] Create alternatieve CObject API that is safe and clean

2009-04-16 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: I've updated the patch: * Capsule now has a custom repr that includes whatever name is set. * I've updated the documentation to talk about Capsules and not CObjects; the documentation discusses naming your capsules. * PyCapsule_Import now

[issue5630] Create alternatieve CObject API that is safe and clean

2009-04-16 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: Whoopsie-daisy, I forgot to touch up a whole lot of places to match the new API. Attached is an updated patch; here's what changed: * The documentation is now much better; there is a capsule.rst, and cobject.rst has a deprecation warning. *

[issue5630] Create alternatieve CObject API that is safe and clean

2009-04-06 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: I discussed this off-list with GvR. He was primarily concerned with fixing the passing-around-a-vtable C API usage of CObject, but he wanted to preserve as much backwards compatibility as possible. In the end, he suggested I create a new API