Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » STARTED: Python in bazaar
Re: STARTED: Python in bazaar [message #31971 is a reply to message #31958] Tue, 12 April 2011 23:57 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
proper exit() handling is supported now, after digging the python source code it's quite simple.

i'm still struggeling for an idea how to properly expose Value to object (boost.python).

anyone's got some experience in boost python and firm in Upp to provide a hint?

problem is, that both, Value and object are actually ref count containers for data.. and, both, upp (c++) side can own the data, and the Python interpreter / GC can own data (through Py_Object, wrapped by boost object). now how to properly manage that? i obviously cant expose the Value itself to object as data. i need to expose the Value's data as object's data..taking ref count in account.

or maybe not expose it at all but provide converter functions for both sides..that'd so far be the most clean way. but this would make any exposure of Upp api calls with Value as argument or return type impossible and would need to have some wrapper functions doing the conversion before and after python invokation.

ideas really welcome..
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: UppGL
Next Topic: Get MAC addresses for windows and linux
Goto Forum:
  


Current Time: Fri May 10 20:51:28 CEST 2024

Total time taken to generate the page: 0.02960 seconds