[Boost-bugs] [Boost C++ Libraries] #4497: division operator problem

Subject: [Boost-bugs] [Boost C++ Libraries] #4497: division operator problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-30 20:51:32

#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.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:04 UTC