[prev in list] [next in list] [prev in thread] [next in thread]
List: boost-bugs
Subject: [Boost-bugs] [Boost C++ Libraries] #4497: division operator problem
From: "Boost C++ Libraries" <noreply () lists ! boost ! org>
Date: 2010-07-30 20:51:32
Message-ID: 050.54c85bcfe460415f9db25ed04808b54a () lists ! boost ! org
[Download RAW message or body]
#4497: division operator problem
----------------------------------------------------+-----------------------
Reporter: trigves@… | Owner: dave
Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: Python
Version: Boost 1.42.0 | Severity: Problem
Keywords: __div__ __truediv__ division nb_divide |
----------------------------------------------------+-----------------------
When trying to implement division operator for custom class python doesn't
recognize it. It is because boost::python use __div__ which was removed
(or deprecated?) in python 3. The fix is to use __truediv__. I'm attaching
the patch
--
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4497>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
_______________________________________________
Boost-bugs mailing list
Boost-bugs@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-bugs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic