[C++-sig] automatic conversion of boost date_time to Python date

Roman Yakovenko roman.yakovenko at gmail.com
Tue Apr 10 20:34:50 CEST 2007


On 4/10/07, Quant Mind <quant.mind at gmail.com> wrote:
>
> Here is the problem.
> I'm using boost date_time library for a calendar C++ application. I
> exposed my C++ Calendar class to Python using boost python and everything is
> going smoothly.
> The class contains several functions which have boost::gregorian::date as
> arguments.
> Obviously, this class is not know to Python and I would like to implement
> a custom converter between boost::gregorian::date and Python datetime.date
> .
> What would be the correct way to deal with this problem?


Let me know if next link helped you:
http://language-binding.net/pyplusplus/troubleshooting_guide/automatic_conversion/automatic_conversion.html


-- 
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070410/0422af18/attachment.htm>


More information about the Cplusplus-sig mailing list