Kaydet (Commit) d58c98d7 authored tarafından Andrew Godwin's avatar Andrew Godwin

Fix proxy objects to respect !=

üst 38a8cf1c
......@@ -147,6 +147,11 @@ def lazy(func, *resultclasses):
else:
return func(*self.__args, **self.__kw)
def __ne__(self, other):
if isinstance(other, Promise):
other = other.__cast()
return self.__cast() != other
def __eq__(self, other):
if isinstance(other, Promise):
other = other.__cast()
......
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