[C++-sig] Set Path to Standard Modules

2008-11-15 Thread Brian Dawn
Hello everyone! I am currently embedding python, and I would like to distribute the Python Standard Modules with my application, in the event that the end user does not have python installed. I have found that I can put the modules inside the directory with my exe and it will find them, but tha

Re: [C++-sig] wrapper and shared_ptr - how to combine?

2008-11-15 Thread Leonard Ritter
It seems I still have no idea what is going on, and I'm starting to become a bit desparate. I'm going to post as much as possible about the issue I'm having. this is the smallest reproduce for the problem i'm having. typedef boost::shared_ptr ActorPtr; class Actor { public: ActorPtr parent;

Re: [C++-sig] wrapper and shared_ptr - how to combine?

2008-11-15 Thread Leonard Ritter
I think I know what the issue is, and it indeed relates to a piece of code I have not posted yet. void Actor::add(const ActorPtr &actor) { assert(actor); assert(!actor->parent); actor->parent = ActorPtr(this); children.push_back(actor); queue_redraw(); } Actor is a tree elemen

Re: [C++-sig] wrapper and shared_ptr - how to combine?

2008-11-15 Thread Leonard Ritter
yes, that's what i want. what details do you need? i mean, the problem posted is quite generic. i want to pass shared_ptr's of abstract classes with overridable methods back and forth from c++ to python and back. is this supposed to work, if yes, how? On Sat, Nov 15, 2008 at 5:20 PM, Stefan Seefel

Re: [C++-sig] wrapper and shared_ptr - how to combine?

2008-11-15 Thread Stefan Seefeld
Leonard Ritter wrote: class_which I did, but that gives me a compiler error if Actor is abstract, and if I declare it non-abstract, calls to wrapping PyActor methods fail in Python. I guess that this approach does not work with wrapper classes, or the syntax is different. Please post specific

[C++-sig] wrapper and shared_ptr - how to combine?

2008-11-15 Thread Leonard Ritter
i am wrapping an abstract class "Actor" which is to be implemented partially in Python, using a wrapper class that looks like this: class PyActor : public Actor, public wrapper { public: }; the boost.python export code looks like this: class_("Actor"); this would be all good and well, un

[C++-sig] C++ Signature

2008-11-15 Thread T J
For boost.python, the C++ signature is shown with a particular header [python/src/object/function_doc_signature.cpp]: char cpp_signature_tag[] = "C++ signature :"; To conform to a reST docstring format, I'd like to change it to: char cpp_signature_tag[] = "C++ signature:\n===