import numpy as np
setup = """
import numpy as np
tmp = np.empty(shape=(1, 100))
values = [i for i in xrange(100)]
"""
stmt1 = 'tmp[0, :] = values'
stmt2 = """
for i, val in enumerate(values):
    tmp[0, i] = val
"""
numpy array assignment using slicing