{"action":"closed","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/2509","labels_url":"https://api.github.com/repos/numpy/numpy/issues/2509/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/2509/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/2509/events","html_url":"https://github.com/numpy/numpy/issues/2509","id":7731568,"number":2509,"title":"genfromtxt strips brackets from names (Trac #1916)","user":{"login":"numpy-gitbot","id":1955252,"avatar_url":"https://avatars.githubusercontent.com/u/1955252?v=3","gravatar_id":"","url":"https://api.github.com/users/numpy-gitbot","html_url":"https://github.com/numpy-gitbot","followers_url":"https://api.github.com/users/numpy-gitbot/followers","following_url":"https://api.github.com/users/numpy-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/numpy-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/numpy-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numpy-gitbot/subscriptions","organizations_url":"https://api.github.com/users/numpy-gitbot/orgs","repos_url":"https://api.github.com/users/numpy-gitbot/repos","events_url":"https://api.github.com/users/numpy-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/numpy-gitbot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20Other","name":"component: Other","color":"ff0000"},{"url":"https://api.github.com/repos/numpy/numpy/labels/Defect","name":"Defect","color":"444444"},{"url":"https://api.github.com/repos/numpy/numpy/labels/priority:%20normal","name":"priority: normal","color":"ff0000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2012-10-19T22:29:53Z","updated_at":"2015-01-23T21:57:53Z","closed_at":"2015-01-23T21:57:53Z","body":"_Original ticket http://projects.scipy.org/numpy/ticket/1916 on 2011-07-28 by trac user mboquien, assigned to unknown._\n\ngenfromtxt systematically strips any bracket ([]) from the name of the columns. Here is a short snippet exhibitting the problem.\n\nIn [1]: from StringIO import StringIO\n\nIn [2]: s = StringIO('1 2\\n3 4')\n\nIn [3]: d = genfromtxt(s,names=['a[1]','a[2]'])\n\nIn [4]: d\n\nOut[4]: \narray([(1.0, 2.0), (3.0, 4.0)], \n      dtype=[('a1', '<f8'), ('a2', '<f8')])\n\nNote that 'a[1]' and 'a[2]' have unexpectedly been substituted with 'a1' and 'a2'.\n\nThank you very much, regards,\n\nMédéric"}}