Re: [C++-sig] Boost.Python indexing suite version 2?

2009-07-27 Thread Matthew Scouten (TT)
The documentation points out (with very good reason) that just using "::with_policies(bp::return_internal_reference)" can cause major problems if the container in question reallocates things between the time that you extract the object and the time you try to access it. v = VectorofFoo() v.extend

[C++-sig] Boost.Python module initialization failure

2009-07-27 Thread Gennadiy Rozental
What is the right way to report error from the Boost.Python extension module init function? Gennadiy ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig

Re: [C++-sig] Boost.Python indexing suite version 2?

2009-07-27 Thread Roman Yakovenko
On Mon, Jul 27, 2009 at 7:29 PM, Matthew Scouten (TT) wrote: > The documentation points out (with very good reason) that just using > "::with_policies(bp::return_internal_reference)" can cause major > problems if the container in question reallocates things between the > time that you extract the o