mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
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
16 lines
194 B
Python
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()
|