Re: [Numpy-discussion] asmatrix and asarray exception

2006-10-11 Thread Travis Oliphant
Charles R Harris wrote: > > > On 10/11/06, *Keith Goodman* <[EMAIL PROTECTED] > > wrote: > > On 10/11/06, Keith Goodman <[EMAIL PROTECTED] > > wrote: > > This works: > > > > >> M.asmatrix(['a', 'b', None]) > > matrix([[a,

Re: [Numpy-discussion] asmatrix and asarray exception

2006-10-11 Thread Charles R Harris
On 10/11/06, Keith Goodman <[EMAIL PROTECTED]> wrote: On 10/11/06, Keith Goodman <[EMAIL PROTECTED]> 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>

Re: [Numpy-discussion] asmatrix and asarray exception

2006-10-11 Thread Travis Oliphant
Keith Goodman wrote: >On 10/11/06, Keith Goodman <[EMAIL PROTECTED]> wrote: > > >>This works: >> >> >> M.asmatrix(['a', 'b', None]) >>matrix([[a, b, None]], dtype=object) >> >>But this doesn't: >> >> >> M.asmatrix(['a', 'b', None, 'c']) >>TypeE

Re: [Numpy-discussion] asmatrix and asarray exception

2006-10-11 Thread Keith Goodman
On 10/11/06, Keith Goodman <[EMAIL PROTECTED]> 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 do

[Numpy-discussion] asmatrix and asarray exception

2006-10-11 Thread Keith Goodman
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. -