On 10/2/07, <b class="gmail_sendername">Matthew Scouten</b> &lt;<a href="mailto:matthew.scouten@gmail.com">matthew.scouten@gmail.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
OK, I can wrap a global function, I can wrap a member function, I can<br>wrap a member variable,</blockquote><div><br>The answer is: it depends<br>* on global variable type<br>* whether you need to share it between Python and C++ code at the same time
<br><br>for immutable types: <a href="http://boost.org/libs/python/doc/v2/scope.html">http://boost.org/libs/python/doc/v2/scope.html</a><br></div><br>for shared class instances: <a href="http://wiki.python.org/moin/boost.python/HowTo#head-85904d74f4f9f20c1380ede50e2eb95a4c333c37">
http://wiki.python.org/moin/boost.python/HowTo#head-85904d74f4f9f20c1380ede50e2eb95a4c333c37</a><br><div><br>&nbsp;P.S. Google will point you to other resources<br clear="all"></div></div><br>-- <br>Roman Yakovenko<br>C++ Python language binding
<br><a href="http://www.language-binding.net/">http://www.language-binding.net/</a>