Re: [C++-sig] boost python & context manager/with statement

2012-02-28 Thread Dave Abrahams
on Sun Feb 12 2012, Avi Bahra wrote: > Does boost python support context management using the with > statement? In my case I need to manage __enter__/__exit__ on > the c++ side. Could not find any examples for this in the > documentation. > > Any help appreciated. > > Best regards, > Ta, >    

Re: [C++-sig] boost python & context manager/with statement

2012-02-12 Thread Jim Bosch
On 02/12/2012 01:25 PM, Avi Bahra wrote: Does boost python support context management using the with statement? In my case I need to manage __enter__/__exit__ on the c++ side. Could not find any examples for this in the documentation. Do you mean that you want to create an object that *has* _

[C++-sig] boost python & context manager/with statement

2012-02-12 Thread Avi Bahra
Does boost python support context management using the with statement? In my case I need to manage __enter__/__exit__ on the c++ side. Could not find any examples for this in the documentation. Any help appreciated. Best regards, Ta,     Avi ___ Cplusp