On 01/05/2012 03:54 PM, danie...@apache.org wrote: > Author: danielsh > Date: Thu Jan 5 20:54:09 2012 > New Revision: 1227828 > > URL: http://svn.apache.org/viewvc?rev=1227828&view=rev > Log: > Fix the swig-py examples. > > When trying to run the get-location-segments.py, it throws: > > TypeError: Unexpected NULL parent pool on proxy object > > Somehow, the "_parent_pool" property wasn't initialized on the context. > Not sure how this works, but creating a context using > client.svn_client_create_context() instead of client.ctx_t() (which > subversion/bindings/swig/python/tests/pool.py also does) fixes this > error and makes the example work again.
I'm not sure what changed since the days when this construct worked, but I've seen exactly this symptom (and exactly this solution) before in another context[1], so ... +1. -- C-Mike [1] The context should hint that "context" here doesn't refer to the problematic context object. ¿Comprendes? -- C. Michael Pilato <cmpil...@collab.net> CollabNet <> www.collab.net <> Distributed Development On Demand
signature.asc
Description: OpenPGP digital signature