def list2numpy(l, dtype=object):  # pragma: no cover
    from numpy import empty
    a = empty(len(l), dtype)
    for i, s in enumerate(l):
        a[i] = s
    return a
Test the reverse prefix map trait we use.
dataset/ETHPy150Open sympy/sympy/sympy/matrices/dense.py/list2numpy--crossover with--dataset/ETHPy150Open enthought/mayavi/tvtk/tests/test_tvtk_base.py/TestTVTKBase.test_rev_prefix_map