Olivier Delalleau <[email protected]> writes: > 2011/7/12 Johann Hibschman <[email protected]> > > Is there any way to wrap a sequence (in particular a python list) as a > numpy object scalar, without it being promoted to an object array?
> I found a workaround but it's a bit ugly: > def some_call(x): > rval = numpy.array(None, dtype='object') > rval.fill(x) > return rval Thanks, that works for me, as does "rval[()] = x" instead of "rval.fill(x)". Regards, Johann _______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
