On 07/31/2011 12:52 AM, Valentin Perrelle wrote:
Le 31/07/2011 07:38, Jim Bosch a écrit :
I guess I don't really understand how your program flow is supposed to
work - how did you plan to invoke C++ code from Python before
importing your Boost.Python module? Usually the natural place to
register converters is during module import after you've registered
the classes.
I don't plan to invoke c++ code from Python before importing the module:
I need to import the module before exposing some instance of some class
of the module. Does this mean that the module should be already imported
when the script start running ? Can't i expose the object and then let
decide the Python script wheter it need to use it or not ?
All of that sounds sounds. But at what point were you trying to
register a to-python converter? It sounded like you were trying to do
that before importing the module, and since a to-python converter is by
definition C++, I didn't understand how you could do it in a Python
script before importing the module.
Jim
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig