mirror of
https://github.com/boostorg/python.git
synced 2026-01-22 05:22:45 +00:00
Tons of changes to improve error reporting
Added attributes function.__name__ and function.__signature__ and dir(function) feature [SVN r8311]
This commit is contained in:
@@ -33,4 +33,24 @@ namespace python { namespace detail {
|
||||
return none();
|
||||
}
|
||||
|
||||
string init::description_as_string() const
|
||||
{
|
||||
tuple arguments(ref(this->description()));
|
||||
string result("(");
|
||||
for (std::size_t i = 1; i < arguments.size(); ++i)
|
||||
{
|
||||
if (i != 1)
|
||||
result += ", ";
|
||||
result += string(arguments[i]);
|
||||
}
|
||||
|
||||
result += ")";
|
||||
return result;
|
||||
}
|
||||
|
||||
string init::argument_types_as_string(tuple arguments) const
|
||||
{
|
||||
return argument_tuple_as_string(arguments.slice(1,arguments.size()));
|
||||
}
|
||||
|
||||
}} // namespace python::detail
|
||||
|
||||
Reference in New Issue
Block a user