Commit 15c66401 authored by David Gobbi's avatar David Gobbi Committed by Marcus D. Hanwell
Browse files

ENH: simply repr() for PyVTKObject, more useful and less verbose

parent 0464fbf6
......@@ -54,10 +54,8 @@ static PyObject *PyVTKObject_PyRepr(PyVTKObject *self)
PyErr_Clear();
char buf[255];
sprintf(buf,"<%s.%s %s at %p>",
PyString_AsString(self->vtk_class->vtk_module),
PyString_AsString(self->vtk_class->vtk_name),
self->ob_type->tp_name,self);
sprintf(buf,"(%s)%p",
PyString_AS_STRING(self->vtk_class->vtk_name), self);
return PyString_FromString(buf);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment