Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

structured dtype of the form np.dtype(["name", "str"]) are confusing #450

Open
cournape opened this Issue Sep 20, 2012 · 2 comments

Comments

Projects
None yet
3 participants
Member

cournape commented Sep 20, 2012

It is relatively intuitive to want to create a structured array with "str" string for a dtype, which is converted to a "S0" type. I think this should be detected as an error instead ?

Contributor

stefanv commented Sep 20, 2012

You mean np.dtype([('name', str)]).

Owner

charris commented Feb 21, 2014

Same with S dtype. Might be better to default to S1 for some such.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment