[Python-ideas] discontinue iterable strings

Random832 random832 at fastmail.com
Fri Aug 19 23:37:57 EDT 2016


On Fri, Aug 19, 2016, at 23:13, Alexander Heger wrote:
> Numpy was of course design a lot later, with more experience in practical
> use (in mind).

The meaning of np.array('abc') is a bit baffling to someone with no
experience in numpy. It doesn't seem to be a one-dimensional array
containing 'abc', as your next statement suggests. It seem to be a
zero-dimensional array?

> Maybe a starting point for transition that latter operation also returns
> ['abc'] in the long run

Just to be clear, are you proposing a generalized list(obj:
non-iterable) constructor that returns [obj]?


More information about the Python-ideas mailing list