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

optimizations to reduce reulting object code size

[SVN r8314]
This commit is contained in:
Ullrich Köthe
2000-11-24 11:05:20 +00:00
parent e3fe2d02ee
commit 517b307622
9 changed files with 350 additions and 326 deletions

View File

@@ -150,14 +150,13 @@ struct init%x : init
PyObject* description() const
{
return function_signature(python::type<T>()%(,
python::type<A%n>()%));
return function_signature(get_python_type_name(python::type<T>())%(,
get_python_type_name(python::type<A%n>())%));
}
string function_name() const
{
static const bool is_plain = BOOST_PYTHON_IS_PLAIN(T);
string result(python_type_name_selector<is_plain>::get(python::type<T>()));
string result(get_python_type_name(python::type<T>()));
result += ".__init__";
return result;
}