Could you do print type(args[0]) print type(args|1]) (or show the complete code)
Kent On 21 March 2011 18:49, Christian Clason < question149...@answers.launchpad.net> wrote: > Question #149919 on DOLFIN changed: > https://answers.launchpad.net/dolfin/+question/149919 > > Status: Answered => Open > > Christian Clason is still having a problem: > Thanks for your quick reply. I'm afraid this doesn't work: > > du.vector()[:] = args[0][:] > TypeError: 'SwigPyObject' object is not subscriptable > > Unfortunately, I know next to nothing about swig. > > Thanks, > > Christian > > -- > You received this question notification because you are a member of > DOLFIN Team, which is an answer contact for DOLFIN. > > _______________________________________________ > Mailing list: https://launchpad.net/~dolfin > Post to : dolfin@lists.launchpad.net > Unsubscribe : https://launchpad.net/~dolfin > More help : https://help.launchpad.net/ListHelp >
_______________________________________________ Mailing list: https://launchpad.net/~dolfin Post to : dolfin@lists.launchpad.net Unsubscribe : https://launchpad.net/~dolfin More help : https://help.launchpad.net/ListHelp