Advertisement
Guest User

Untitled

a guest
Jul 6th, 2012
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Python 2.7.3 (default, Apr 20 2012, 22:39:59)
  2. [GCC 4.6.3] on linux2
  3. Type "help", "copyright", "credits" or "license" for more information.
  4. >>> import spam, numpy
  5. >>> a = spam.vector3d()
  6. >>> a[0]=1
  7. >>> b = numpy.array(a, copy=False)
  8. >>> b
  9. array([ 1., 0., 0.])
  10. >>> a[1]=1
  11. >>> b
  12. array([ 1., 1., 0.])
  13. >>> a = 0
  14. >>> b
  15. array([ 1., 1., 0.])
  16. >>> a
  17. 0
  18. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement