{"action":"created","issue":{"url":"https://api.github.com/repos/rougier/from-python-to-numpy/issues/35","repository_url":"https://api.github.com/repos/rougier/from-python-to-numpy","labels_url":"https://api.github.com/repos/rougier/from-python-to-numpy/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/rougier/from-python-to-numpy/issues/35/comments","events_url":"https://api.github.com/repos/rougier/from-python-to-numpy/issues/35/events","html_url":"https://github.com/rougier/from-python-to-numpy/issues/35","id":199645643,"number":35,"title":"Fix code snippet in Chapter 3.3 (Temporary copy)","user":{"login":"Gebon","id":5419623,"avatar_url":"https://avatars.githubusercontent.com/u/5419623?v=3","gravatar_id":"","url":"https://api.github.com/users/Gebon","html_url":"https://github.com/Gebon","followers_url":"https://api.github.com/users/Gebon/followers","following_url":"https://api.github.com/users/Gebon/following{/other_user}","gists_url":"https://api.github.com/users/Gebon/gists{/gist_id}","starred_url":"https://api.github.com/users/Gebon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gebon/subscriptions","organizations_url":"https://api.github.com/users/Gebon/orgs","repos_url":"https://api.github.com/users/Gebon/repos","events_url":"https://api.github.com/users/Gebon/events{/privacy}","received_events_url":"https://api.github.com/users/Gebon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-09T19:52:41Z","updated_at":"2017-01-09T20:01:07Z","closed_at":null,"body":"There are the following code snippet:\r\n```\r\n>>> X = np.ones(1000000000, dtype=np.int)\r\n>>> Y = np.ones(1000000000, dtype=np.int)\r\n>>> timeit(\"X = X + 2.0*Y\", globals())\r\n100 loops, best of 3: 3.61 ms per loop\r\n>>> timeit(\"X = X + 2*Y\", globals())\r\n100 loops, best of 3: 3.47 ms per loop\r\n>>> timeit(\"X += 2*Y\", globals())\r\n100 loops, best of 3: 2.79 ms per loop\r\n>>> np.add(X, Y, out=X), np.add(X, Y, out=X),\r\n1000 loops, best of 3: 1.57 ms per loop\r\n```\r\n\r\nI think, that the last line of Python code should be `timeit('np.add(X, Y, out=X); np.add(X, Y, out=X)', globals())`. Isn't it?"},"comment":{"url":"https://api.github.com/repos/rougier/from-python-to-numpy/issues/comments/271391471","html_url":"https://github.com/rougier/from-python-to-numpy/issues/35#issuecomment-271391471","issue_url":"https://api.github.com/repos/rougier/from-python-to-numpy/issues/35","id":271391471,"user":{"login":"rougier","id":327203,"avatar_url":"https://avatars.githubusercontent.com/u/327203?v=3","gravatar_id":"","url":"https://api.github.com/users/rougier","html_url":"https://github.com/rougier","followers_url":"https://api.github.com/users/rougier/followers","following_url":"https://api.github.com/users/rougier/following{/other_user}","gists_url":"https://api.github.com/users/rougier/gists{/gist_id}","starred_url":"https://api.github.com/users/rougier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rougier/subscriptions","organizations_url":"https://api.github.com/users/rougier/orgs","repos_url":"https://api.github.com/users/rougier/repos","events_url":"https://api.github.com/users/rougier/events{/privacy}","received_events_url":"https://api.github.com/users/rougier/received_events","type":"User","site_admin":false},"created_at":"2017-01-09T20:01:07Z","updated_at":"2017-01-09T20:01:07Z","body":"You're right, thanks. Can you make a PR ?"}}
{"actor":{"display_login":"rougier"}}