Boost C++ Libraries: Ticket #4497: division operator problem https://svn.boost.org/trac10/ticket/4497 <p> When trying to implement division operator for custom class python doesn't recognize it. It is because boost::python use <span class="underline">div</span> which was removed (or deprecated?) in python 3. The fix is to use <span class="underline">truediv</span>. I'm attaching the patch </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4497 Trac 1.4.3 trigves@… Fri, 30 Jul 2010 20:52:00 GMT attachment set https://svn.boost.org/trac10/ticket/4497 https://svn.boost.org/trac10/ticket/4497 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">truediv.patch</span> </li> </ul> Ticket Ralf W. Grosse-Kunstleve Fri, 27 Aug 2010 17:31:21 GMT <link>https://svn.boost.org/trac10/ticket/4497#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4497#comment:1</guid> <description> <p> Checked in as boost trunk svn revision 65055. Tested with Python 2.3 through 2.7. Caveat: I didn't test with Python 3. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ralf W. Grosse-Kunstleve</dc:creator> <pubDate>Fri, 27 Aug 2010 17:35:09 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4497#comment:2 https://svn.boost.org/trac10/ticket/4497#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket