[C++-sig] boost package import error

Stefan Seefeld seefeld at sympatico.ca
Fri Nov 4 00:07:24 CET 2005

Marc Rossi wrote:

> Running python with the -vv switch shows python does
> indeed look at _research.so but does not load it.
> However if I put the directory containing _research.so
> on my PYTHONPATH the following command is successful:
>     >>> import _research

This is not related to C++ (or boost): As described
in http://docs.python.org/ref/import.html, the '*' wildcard
only applies to public names, if not specified otherwise
via __all__. Rename '_research' to 'research_impl' (for example)
and you will be fine.


More information about the Cplusplus-sig mailing list