[C++-sig] Re: Recent changes to FAQ

Nicodemus nicodemus at globalite.com.br
Wed May 28 04:07:17 CEST 2003


Ralf W. Grosse-Kunstleve wrote:

>--- David Abrahams <dave at boost-consulting.com> wrote:
>  
>
>>"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> 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.





More information about the Cplusplus-sig mailing list