Code: Select all
from neuron import h
v1 = h.Vector(1)
v1.x[0]=10
v2 = v1.c
v2.x[0]=5
print v1.x[0] == v2.x[0] # true
print v1.x == v2.x # false
print v1==v2 # false
This problem won't occur if we use v2 = v1.c()