mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Well what do you know. The Python implementation contained the same
bug as the C code. :-(
This commit is contained in:
parent
ba2485f947
commit
7171f1c8d8
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue