Commit 7171f1c8 authored by Guido van Rossum's avatar Guido van Rossum

Well what do you know. The Python implementation contained the same

bug as the C code. :-(
parent ba2485f9
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment