J
john
Hello,
I was wondering if someone could explain the following situation to me
please:
def f(self):
pass
Why do c.f and C.__dict__['f'].__get__(c,C) compare as equal under ==
but not under *is* ?
Thanks,
John
I was wondering if someone could explain the following situation to me
please:
def f(self):
pass
Falsec = C()
c.fC.__dict__['f'].__get__(c,C)c.f == C.__dict__['f'].__get__(c,C) True
c.f is C.__dict__['f'].__get__(c,C)
Why do c.f and C.__dict__['f'].__get__(c,C) compare as equal under ==
but not under *is* ?
Thanks,
John