I ran into a problem that is reproduced with the following elementary snippet:
app = pyeval("lambda x: x.append(1)")
x = []
app(x)
@show x
# x = Any[]
Why is x not modified?
I am guessing that append
creates a new block of data for the python object while Julia only keeps track of the original data? Can this be fixed?