On Friday, September 9, 2016 at 2:56:02 AM UTC-4, Christoph Ortner wrote
>
> (2) convert it to a PyArray (no copy) : 
> Xpy = PyArray(X)
>
>
> (3) then assign this to a field of an object:   
> pyobj["X"] = Xpy   or    pyobj["X"] = Xpy.o     or ????
>
> The aim is, when I modify X, then the data in pyobj[:X] should be modified 
> as well. The way described above does not work. 
>

 pyobj["X"] = Xpy is the equivalent of pyobj.X = X in Python.   Is that 
what you want to do?  Is. pyobj.X a writable attribute in Python?  What 
error message are you getting?   It "does not work" is not a useful 
description of your problem.

Reply via email to