mirror of
https://github.com/boostorg/python.git
synced 2026-01-21 17:12:22 +00:00
Modified Files:
boost/python/detail:
base_object.hpp - Changed template parameter to MixedCase
cast.hpp - Killed off unused downcast_traits<>
functions.hpp - Added commentary
libs/python/src
functions.cpp, types.cpp - Added comments
tools/build
TODO.txt - updated
allyourbase.jam - fixed a nasty typo which caused all kinds of bugs
boost-base.jam - changes to support the use of command files
intel-win32-tools.jam -
A feeble attempt at allowing intel to work without prior tool setup. More work needed
msvc-tools.jam - A first cut at command file support
tools/build/jam_src
jam.h - Fixed MAXLINE for NT
[SVN r11489]
This commit is contained in:
@@ -61,6 +61,8 @@ function::function()
|
||||
|
||||
PyObject* function::call(PyObject* args, PyObject* keywords) const
|
||||
{
|
||||
// Traverse the linked list of function overloads until we find one that
|
||||
// matches.
|
||||
for (const function* f = this; f != 0; f = f->m_overloads.get())
|
||||
{
|
||||
PyErr_Clear();
|
||||
@@ -75,9 +77,14 @@ PyObject* function::call(PyObject* args, PyObject* keywords) const
|
||||
}
|
||||
}
|
||||
|
||||
// If we get here, no overloads matched the arguments
|
||||
|
||||
// Allow the single-function error-reporting to take effect unless there was
|
||||
// an overload
|
||||
if (m_overloads.get() == 0)
|
||||
return 0;
|
||||
|
||||
// Synthesize a more-explicit error message
|
||||
PyErr_Clear();
|
||||
string message("No overloaded functions match (");
|
||||
tuple arguments(ref(args, ref::increment_count));
|
||||
|
||||
Reference in New Issue
Block a user