diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index d2cdbe2b2d..79249cddd1 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -171,7 +171,7 @@ struct ShapeRTTI : public boost::static_visitor if isinstance(v, numbers.Integral): yield x - return "%self(%self)" % ( + return "%s(%s)" % ( type(self).__name__, (", ".join(map(lambda x: "%s = %r" % (x, self.get(getattr(self, x))), d()))) )