From 798c2f03d2433cce5f4c74fc847897212167b36b Mon Sep 17 00:00:00 2001 From: Daniele Parmeggiani <8658291+dpdani@users.noreply.github.com> Date: Fri, 7 Jun 2024 17:25:31 +0200 Subject: [PATCH] suggested new formatting syntax Co-authored-by: Erlend E. Aasland --- Python/structmember.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/structmember.c b/Python/structmember.c index 5ded2b6220ac9d..b0f0a0a17075bf 100644 --- a/Python/structmember.c +++ b/Python/structmember.c @@ -16,8 +16,8 @@ member_get_object(const char *addr, const char *obj_addr, PyMemberDef *l) PyObject *obj = (PyObject *) obj_addr; PyTypeObject *tp = Py_TYPE(obj); PyErr_Format(PyExc_AttributeError, - "'%.200s' object has no attribute '%s'", - tp->tp_name, l->name); + "'%N' object has no attribute '%s'", + tp, l->name); } return v; }