PY-38378 PY-38424 Fix updating variables in debugger console

We now access the `frame.f_locals` attribute only once. Multiple access leads to the loss of the changes we have made. We also alter the second argument of the `PyFrame_LocalsToFast()` to 1 to ensure that all the deleted variables will be wiped out from the frame locals.

(cherry picked from commit 28abff39b2c37f30651db220e8700032a629ce73)

GitOrigin-RevId: 8514da7ec187c1192ea9cdf851f89f008242fc30
This commit is contained in:
Andrey Lisin
2019-11-22 11:18:32 +03:00
committed by intellij-monorepo-bot
parent 40ac8526c3
commit eb956ca29d
7 changed files with 178 additions and 51 deletions

View File

@@ -0,0 +1,15 @@
import pandas as pd
class C:
@staticmethod
def f():
def g():
return pd.Series(index=[40, 50, 60], data=[1, 2, 3])
a = g()
a # breakpoint
C.f()