logo       

Re: Re: Recent changes to FAQ: msg#00291

python.c++

Subject: Re: Re: Recent changes to FAQ

Ralf W. Grosse-Kunstleve wrote:

--- David Abrahams <dave@xxxxxxxxxxxxxxxxxxxx> wrote:

"Ralf W. Grosse-Kunstleve" <rwgk@xxxxxxxxx> writes:


Are the module names (e.g. _core in Bruno's examples) at global scope?
Thanks,
Ralf

They're not even C++ names! I don't understand what the problem
might be.


Ah, OK, I forgot that the BOOST_PYTHON_MODULE macro prepends "init", so "_core"
ends up as the function name init_core(). Please disregard my remarks.
Ralf


Just a little note: the leading underscore is a convention in Python, in the case where you have both code in extension modules and in pure Python. In the DLL directory of the Python distribution, you can see lots of files that follow that convention. 8)

Regards,
Nicodemus.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise