Python: Fix self-passing problems

This also fixes performance problems for pandas-dev/pandas
This commit is contained in:
Rasmus Wriedt Larsen
2022-10-20 11:24:33 +02:00
parent 722c69edcc
commit b33f02f9dc
3 changed files with 14 additions and 9 deletions

View File

@@ -21,7 +21,7 @@ class Base(object):
class A(Base):
def foo(self):
print("A.foo")
self.bar() # $ pt,tt=A.bar SPURIOUS: tt=B.bar
self.bar() # $ pt,tt=A.bar
def not_called(self):
self.bar() #$ pt,tt=A.bar
@@ -50,7 +50,7 @@ class X(object):
def foo(self):
print("X.foo")
self.meth() # $ pt,tt=X.meth SPURIOUS: tt=Y.meth
self.meth() # $ pt,tt=X.meth
class Y(object):