Re: [C++-sig] Calling import() multiple times for the same module

2008-10-27 Thread David Abrahams
on Mon Oct 27 2008, "Robert Dailey" wrote: > On Fri, Oct 24, 2008 at 1:07 PM, Stefan Seefeld <[EMAIL PROTECTED]> wrote: > > Robert Dailey wrote: > > Hi, > > What happens if I do the following? > > using namespace boost::python; > >

Re: [C++-sig] Calling import() multiple times for the same module

2008-10-27 Thread Hans Meine
On Freitag 24 Oktober 2008, Robert Dailey wrote: > What happens if I do the following? > > using namespace boost::python; > > import( "__main__" ).attr( "new_global" ) = 40.0f; > import( "__main__" ).attr( "another_global" ) = 100.0f: > > > My main concern here is performance. I'm wondering if each

Re: [C++-sig] Calling import() multiple times for the same module

2008-10-27 Thread Robert Dailey
On Fri, Oct 24, 2008 at 1:07 PM, Stefan Seefeld <[EMAIL PROTECTED]>wrote: > Robert Dailey wrote: > >> Hi, >> >> What happens if I do the following? >> >> using namespace boost::python; >> >> import( "__main__" ).attr( "new_global" ) = 40.0f; >> import( "__main__" ).attr( "another_global" ) = 100.0