[C++-sig] Seeking advice on wrapping library with boost::python

Bobby R. Ward bobbyrward at gmail.com
Fri Jun 29 03:41:21 CEST 2007


I'm looking to create a python module wrapping a C library and C is most
certainly not my specialty.

The library has structs in the the form

struct sub_sub_item {
	// stuff
};

struct sub_item {
	//stuff
	int num_sub_sub_items;
	sub_sub_item *sub_sub_items;
};

struct item {
	//stuff
	int num_sub_items;
	sub_item *sub_items;
};

The module would have to allow adding and removing from the arrays and
wrapping the "stuff".

Performance is not critical but it is fairly important.

What would be the best way to go about creating this?

Would I be better off creating the module some other way?





More information about the Cplusplus-sig mailing list