On Thu, Jul 23, 2009 at 9:50 AM, Peter < [email protected]> wrote:
> On Thu, Jul 23, 2009 at 3:54 PM, Charles R > Harris<[email protected]> wrote: > > > > Would something like > > > > In [2]: array("ABCDEF", 'c').view(uint8) > > Out[2]: array([65, 66, 67, 68, 69, 70], dtype=uint8) > > > > work for you? > > Yes, that also looks good. I guess I have a couple of options to > benchmark now :) > One more: In [1]: fromstring("ABCDEF", dtype=uint8) Out[1]: array([65, 66, 67, 68, 69, 70], dtype=uint8) Chuck
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
