Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3710: error incorrect when calling boost::python function via functools.partial
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-03 21:14:04
#3710: error incorrect when calling boost::python function via functools.partial
--------------------------+-------------------------------------------------
Reporter: anonymous | Owner: troy
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: Python
Version: Boost 1.41.0 | Severity: Problem
Keywords: |
--------------------------+-------------------------------------------------
Comment(by troy):
For the record, here's a variation on the same theme. It doesn't have
anything to do with functools, it is another symptom of our first-match
overload resolution algorithm:
{{{
int addem(int x, int y, int z) { return x*100 + y*10 + z; }
BOOST_PYTHON_MODULE(functools_playnice_ext)
{
def("addem", &addem, (arg("x"), arg("y"), arg("z")));
}
>>> from functools_playnice_ext import addem
>>> addem(1, 8, 2, x=4)
Traceback (most recent call last):
...
ArgumentError: Python argument types in
functools_playnice_ext.addem(int, int, int)
did not match C++ signature:
addem(int x, int y, int z)
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3710#comment:2> 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:02 UTC