Mercurial > cpython-lru_cache-weakref
diff Objects/weakrefobject.c @ 20613:bf4b37518c14 legacy-trunk
Referencable is not a word, so don't use it in an error message <wink>.
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Mon, 22 Oct 2001 16:31:40 +0000 |
| parents | bc138bc73cdd |
| children | 225c7dd17e37 |
line wrap: on
line diff
--- a/Objects/weakrefobject.c Mon Oct 22 16:30:36 2001 +0000 +++ b/Objects/weakrefobject.c Mon Oct 22 16:31:40 2001 +0000 @@ -558,7 +558,7 @@ if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) { PyErr_Format(PyExc_TypeError, - "'%s' objects are not weakly referencable", + "cannot create weak reference to '%s' object", ob->ob_type->tp_name); return NULL; } @@ -602,7 +602,7 @@ if (!PyType_SUPPORTS_WEAKREFS(ob->ob_type)) { PyErr_Format(PyExc_TypeError, - "'%s' objects are not weakly referencable", + "cannot create weak reference to '%s' object", ob->ob_type->tp_name); return NULL; }
