2
0
mirror of https://github.com/boostorg/python.git synced 2026-02-12 12:22:13 +00:00

further simplifications of error reporting code

[SVN r8315]
This commit is contained in:
Ullrich Köthe
2000-11-24 11:56:17 +00:00
parent 517b307622
commit 0bcf6cfba1
6 changed files with 107 additions and 165 deletions

View File

@@ -33,24 +33,4 @@ 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