{"action":"created","issue":{"url":"https://api.github.com/repos/jsbain/objc_hacks/issues/1","labels_url":"https://api.github.com/repos/jsbain/objc_hacks/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/jsbain/objc_hacks/issues/1/comments","events_url":"https://api.github.com/repos/jsbain/objc_hacks/issues/1/events","html_url":"https://github.com/jsbain/objc_hacks/issues/1","id":97442322,"number":1,"title":"Is it posslible to gather ns objects in Python?","user":{"login":"cclauss","id":3709715,"avatar_url":"https://avatars.githubusercontent.com/u/3709715?v=3","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-27T11:28:09Z","updated_at":"2015-07-27T16:20:44Z","closed_at":null,"body":"Could\r\n\r\n```python\r\nelif isinstance(py_obj, list):   # line 481 of obj_c.py\r\n    arr = NSMutableArray.array()\r\n    for obj in py_obj:\r\n    arr.addObject_(ns(obj))\r\n    return arr\r\n```\r\n\r\nbe rewritten as\r\n\r\n```python\r\nelif isinstance(py_obj, list):   # line 481 of obj_c.py\r\n    return NSMutableArray.array([ns(obj) for obj in py_obj])\r\n```\r\nIf so, would it matter?"},"comment":{"url":"https://api.github.com/repos/jsbain/objc_hacks/issues/comments/125261763","html_url":"https://github.com/jsbain/objc_hacks/issues/1#issuecomment-125261763","issue_url":"https://api.github.com/repos/jsbain/objc_hacks/issues/1","id":125261763,"user":{"login":"jsbain","id":7924558,"avatar_url":"https://avatars.githubusercontent.com/u/7924558?v=3","gravatar_id":"","url":"https://api.github.com/users/jsbain","html_url":"https://github.com/jsbain","followers_url":"https://api.github.com/users/jsbain/followers","following_url":"https://api.github.com/users/jsbain/following{/other_user}","gists_url":"https://api.github.com/users/jsbain/gists{/gist_id}","starred_url":"https://api.github.com/users/jsbain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsbain/subscriptions","organizations_url":"https://api.github.com/users/jsbain/orgs","repos_url":"https://api.github.com/users/jsbain/repos","events_url":"https://api.github.com/users/jsbain/events{/privacy}","received_events_url":"https://api.github.com/users/jsbain/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T16:20:44Z","updated_at":"2015-07-27T16:20:44Z","body":"does that work?  i dont think array() takes arguments.  im finding objc is very very explicit.  from https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/index.html#//apple_ref/occ/clm/NSArray/arrayWithObjects:  maybe `arrayWithObjects_`, perhaps expanding the tuple so it looks like multiple arguments.  actually, youd have to check if the list only has one object,in which case youd call `arrayWithObject_` instead!"}}