Files
openide/python/testData/debug/test_update_series_in_debug_console.py
Andrey Lisin eb956ca29d 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
2019-11-25 09:31:23 +00:00

16 lines
194 B
Python

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()