summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-12-10 18:06:21 (GMT)
committerGuido van Rossum <guido@python.org>2001-12-10 18:06:21 (GMT)
commit7171f1c8d8b6f8509026d7b91d41edecd828e12d (patch)
treeeb71c8539f132d85314c2fdda7b05f26e749cf4d /Objects
parentba2485f9470c9ce6040a88336f998f5f7e73e8aa (diff)
downloadcpython-7171f1c8d8b6f8509026d7b91d41edecd828e12d.zip
cpython-7171f1c8d8b6f8509026d7b91d41edecd828e12d.tar.gz
cpython-7171f1c8d8b6f8509026d7b91d41edecd828e12d.tar.bz2
Well what do you know. The Python implementation contained the same
bug as the C code. :-(
Diffstat (limited to 'Objects')
-rw-r--r--Objects/descrobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 4022e89..54c0347 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):