{"action":"opened","issue":{"url":"https://api.github.com/repos/sardana-org/sardana/issues/437","repository_url":"https://api.github.com/repos/sardana-org/sardana","labels_url":"https://api.github.com/repos/sardana-org/sardana/issues/437/labels{/name}","comments_url":"https://api.github.com/repos/sardana-org/sardana/issues/437/comments","events_url":"https://api.github.com/repos/sardana-org/sardana/issues/437/events","html_url":"https://github.com/sardana-org/sardana/issues/437","id":214685259,"number":437,"title":"strings are interpreted as sequences by macro parameter parser","user":{"login":"cpascual","id":4115224,"avatar_url":"https://avatars1.githubusercontent.com/u/4115224?v=3","gravatar_id":"","url":"https://api.github.com/users/cpascual","html_url":"https://github.com/cpascual","followers_url":"https://api.github.com/users/cpascual/followers","following_url":"https://api.github.com/users/cpascual/following{/other_user}","gists_url":"https://api.github.com/users/cpascual/gists{/gist_id}","starred_url":"https://api.github.com/users/cpascual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpascual/subscriptions","organizations_url":"https://api.github.com/users/cpascual/orgs","repos_url":"https://api.github.com/users/cpascual/repos","events_url":"https://api.github.com/users/cpascual/events{/privacy}","received_events_url":"https://api.github.com/users/cpascual/received_events","type":"User","site_admin":false},"labels":[{"id":483643667,"url":"https://api.github.com/repos/sardana-org/sardana/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-16T12:14:59Z","updated_at":"2017-03-16T12:14:59Z","closed_at":null,"body":"Consider the following macro:\r\n\r\n```python\r\nclass pt16(Macro):\r\n    param_def = [\r\n        [ 'string_list1', [ [ 'pos', Type.String, None, 'value'] ], None, 'List of values'],\r\n        [ 'string_list2', [ [ 'pos', Type.String, None, 'value'] ], None, 'List of values'],\r\n    ]\r\n    def run(self, *args, **kwargs):\r\n        pass\r\n```\r\n\r\nNow, if in spock one does: `pt16 [foo] [bar]`, it works fine (the parser interprets it as `[['foo'], ['bar']]`), but if one does `pt16 [foo] bar`, (which should be rejected) the parser \"swallows\" it and returns  `[['foo'], ['b', 'a', 'r']]`\r\n\r\nThis is not a big deal, but it could cause difficult to debug problems in some situations.\r\n\r\n"}}
{"actor":{"display_login":"cpascual"}}