Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python 2.7.3 (default, Apr 20 2012, 22:39:59)
- [GCC 4.6.3] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import spam, numpy
- >>> a = spam.vector3d()
- >>> a[0]=1
- >>> a[1]=2
- >>> a[2]=3
- >>> b = numpy.array(a, copy=False)
- >>> b
- array([ 1., 2., 3.])
- >>> a[0]=-1
- >>> b
- array([-1., 2., 3.])
- >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement