[C++-sig] [GSoC] Boost.Python py3k support project final report

2009-08-31 Thread Haoyu Bai
Hi, As GSoC is officially finished, this is the final report of the Boost.Python py3k(Python 3) support project. The goal of this project is to provide seamless support for Python 2 and 3 in Boost.Python. So extension modules using Boost.Python can be easily migrated to Python 3. The SVN branch i

Re: [C++-sig] python extended object to native c++ pointer

2009-08-31 Thread Mark Chandler
im using boost 1_36_0 as the latest has compile issues. im loading it via the boost call: return boost::python::exec_file(file, GetGloablDict(), GetLocalDict()); where GetGloablDict is the main dict and GetLocalDict is a copy for this instant Stefan Seefeld wrote: On 08/31/2009 08:57 AM, Mar

Re: [C++-sig] python extended object to native c++ pointer

2009-08-31 Thread Stefan Seefeld
On 08/31/2009 08:57 AM, Mark Chandler wrote: Stefan i spent so long on this thank you! I got another quick question, how do i define the class in the global namespace but still refer to it in functions? I want to do something like this but keep getting compile errors. The script itself l

Re: [C++-sig] AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is read-only

2009-08-31 Thread Renato Araujo
Hi guys, Searching in karmic patch for python 2.6, I found this one which touch in __doc__ attributes of python objects. (http://pastebin.com/m4d8008fa). I did not test if removing this boost will works fine. For fix this I did a little change removing the use of def_readonly("bar",Foo::bar) to ad

Re: [C++-sig] python extended object to native c++ pointer

2009-08-31 Thread Mark Chandler
Stefan i spent so long on this thank you! I got another quick question, how do i define the class in the global namespace but still refer to it in functions? I want to do something like this but keep getting compile errors. /

Re: [C++-sig] python extended object to native c++ pointer

2009-08-31 Thread Stefan Seefeld
On 08/31/2009 07:51 AM, Mark Chandler wrote: Im toying around with the idea to use python as an embedded scripting language for a project im working on and have got most things working. However i cant seem to be able to convert a python extended object back into a native c++ pointer. [...]

[C++-sig] python extended object to native c++ pointer

2009-08-31 Thread Mark Chandler
Im toying around with the idea to use python as an embedded scripting language for a project im working on and have got most things working. However i cant seem to be able to convert a python extended object back into a native c++ pointer. So this is my class: class CGEGameModeBase {