[C++-sig] Mapping C++ typedefs to Python
Nat Goodspeed
nat at lindenlab.com
Wed Nov 7 17:20:44 CET 2007
Sylvain Pion wrote:
> I use typedefs in C++, that is, several names for the same type
> (enums in my case).
> Is it possible to export this in Python?
> Is there the equivalent of typedefs in Python, and how
> can I specify this using Boost.Python?
enums:
http://boost.org/libs/python/doc/tutorial/doc/html/python/object.html#python.enums
If you have several C++ names for the same type, wouldn't it work to
export each of them as though they were distinct? Unless I'm missing
something, neither Python nor Boost.Python needs to know their sameness.
More information about the Cplusplus-sig
mailing list