From: Guido van Rossum Date: Mon, 10 Dec 2001 18:06:21 +0000 (+0000) Subject: Well what do you know. The Python implementation contained the same X-Git-Tag: v2.2.1c1~439 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7171f1c8d8b6f8509026d7b91d41edecd828e12d;p=python Well what do you know. The Python implementation contained the same bug as the C code. :-( --- diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 4022e89acd..54c0347184 100644 --- a/Objects/descrobject.c +++ b/Objects/descrobject.c @@ -911,10 +911,10 @@ PyWrapper_New(PyObject *d, PyObject *self) self.__doc__ = doc def __get__(self, inst, type=None): - if self.__get is None: - raise AttributeError, "unreadable attribute" if inst is None: return self + if self.__get is None: + raise AttributeError, "unreadable attribute" return self.__get(inst) def __set__(self, inst, value):