[C++-sig] Re: python binding problems

Dusty Leary dleary at ttlc.net
Sun Dec 28 09:39:42 CET 2003


>
> Pass ptr(x) instead of x if you don't want the foo copied.
>

Thanks very much.

Is there a way to specify this as the default behavior for a type, maybe via
the to_python handlers or whatever?

Basically, something so that whenever I call python with a foo*, it will do
the pointer_wrapper<> thing...





More information about the Cplusplus-sig mailing list