From: Keith G. <kwg...@gm...> - 2006-10-11 16:06:36
|
On 10/11/06, Keith Goodman <kwg...@gm...> wrote: > This works: > > >> M.asmatrix(['a', 'b', None]) > matrix([[a, b, None]], dtype=object) > > But this doesn't: > > >> M.asmatrix(['a', 'b', None, 'c']) > TypeError: expected a readable buffer object > > >> M.__version__ > '1.0rc1' > > It also doesn't work for asarray and for tuples. > Here's a workaround: >> M.asmatrix(['a', 'b', None, 'c'], dtype=object) matrix([[a, b, None, c]], dtype=object) |