{"action":"created","comment":{"url":"https://api.github.com/repos/numpy/numpy/pulls/comments/88768205","pull_request_review_id":9335334,"id":88768205,"diff_hunk":"@@ -53,3 +53,10 @@ Improvements\n \n Changes\n =======\n+\n+``average`` now preserves subclasses\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+For ndarray subclasses, ``numpy.average`` will now return an instance of the\n+subclass, matching the behavior of most other numpy functions such as ``mean``.\n+As a consequence, also calls that returned a scalar may now return a subclass\n+array scalar.","path":"doc/release/1.13.0-notes.rst","position":10,"original_position":10,"commit_id":"99cbb78d54b5b2db4f7be33753f2d77e957650ee","original_commit_id":"99cbb78d54b5b2db4f7be33753f2d77e957650ee","user":{"login":"charris","id":77272,"avatar_url":"https://avatars.githubusercontent.com/u/77272?v=3","gravatar_id":"","url":"https://api.github.com/users/charris","html_url":"https://github.com/charris","followers_url":"https://api.github.com/users/charris/followers","following_url":"https://api.github.com/users/charris/following{/other_user}","gists_url":"https://api.github.com/users/charris/gists{/gist_id}","starred_url":"https://api.github.com/users/charris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charris/subscriptions","organizations_url":"https://api.github.com/users/charris/orgs","repos_url":"https://api.github.com/users/charris/repos","events_url":"https://api.github.com/users/charris/events{/privacy}","received_events_url":"https://api.github.com/users/charris/received_events","type":"User","site_admin":false},"body":"Could you also add something under `Compatibility notes`? If you look In the 1.12 notes there is a subsection `FutureWarning to changed behavior` that has a list of changes.\r\n","created_at":"2016-11-19T01:32:37Z","updated_at":"2016-11-19T01:32:38Z","html_url":"https://github.com/numpy/numpy/pull/8290#discussion_r88768205","pull_request_url":"https://api.github.com/repos/numpy/numpy/pulls/8290","_links":{"self":{"href":"https://api.github.com/repos/numpy/numpy/pulls/comments/88768205"},"html":{"href":"https://github.com/numpy/numpy/pull/8290#discussion_r88768205"},"pull_request":{"href":"https://api.github.com/repos/numpy/numpy/pulls/8290"}}},"pull_request":{"url":"https://api.github.com/repos/numpy/numpy/pulls/8290","id":94418062,"html_url":"https://github.com/numpy/numpy/pull/8290","diff_url":"https://github.com/numpy/numpy/pull/8290.diff","patch_url":"https://github.com/numpy/numpy/pull/8290.patch","issue_url":"https://api.github.com/repos/numpy/numpy/issues/8290","number":8290,"state":"open","locked":false,"title":"MAINT: let average preserve subclass information.","user":{"login":"mhvk","id":2789820,"avatar_url":"https://avatars.githubusercontent.com/u/2789820?v=3","gravatar_id":"","url":"https://api.github.com/users/mhvk","html_url":"https://github.com/mhvk","followers_url":"https://api.github.com/users/mhvk/followers","following_url":"https://api.github.com/users/mhvk/following{/other_user}","gists_url":"https://api.github.com/users/mhvk/gists{/gist_id}","starred_url":"https://api.github.com/users/mhvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhvk/subscriptions","organizations_url":"https://api.github.com/users/mhvk/orgs","repos_url":"https://api.github.com/users/mhvk/repos","events_url":"https://api.github.com/users/mhvk/events{/privacy}","received_events_url":"https://api.github.com/users/mhvk/received_events","type":"User","site_admin":false},"body":"This behaviour matches that for most other numpy functions (such as np.mean).  It was initially slated for 1.12 (#7382), but replaced by a FutureWarning (#7433).  Hence, this is for 1.13.","created_at":"2016-11-18T19:04:09Z","updated_at":"2016-11-19T01:32:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc6a4582195ef874cc4c9dba01af2aa10993f476","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/numpy/numpy/pulls/8290/commits","review_comments_url":"https://api.github.com/repos/numpy/numpy/pulls/8290/comments","review_comment_url":"https://api.github.com/repos/numpy/numpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/8290/comments","statuses_url":"https://api.github.com/repos/numpy/numpy/statuses/99cbb78d54b5b2db4f7be33753f2d77e957650ee","head":{"label":"mhvk:average-preserve-subclasses","ref":"average-preserve-subclasses","sha":"99cbb78d54b5b2db4f7be33753f2d77e957650ee","user":{"login":"mhvk","id":2789820,"avatar_url":"https://avatars.githubusercontent.com/u/2789820?v=3","gravatar_id":"","url":"https://api.github.com/users/mhvk","html_url":"https://github.com/mhvk","followers_url":"https://api.github.com/users/mhvk/followers","following_url":"https://api.github.com/users/mhvk/following{/other_user}","gists_url":"https://api.github.com/users/mhvk/gists{/gist_id}","starred_url":"https://api.github.com/users/mhvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhvk/subscriptions","organizations_url":"https://api.github.com/users/mhvk/orgs","repos_url":"https://api.github.com/users/mhvk/repos","events_url":"https://api.github.com/users/mhvk/events{/privacy}","received_events_url":"https://api.github.com/users/mhvk/received_events","type":"User","site_admin":false},"repo":{"id":11478718,"name":"numpy","full_name":"mhvk/numpy","owner":{"login":"mhvk","id":2789820,"avatar_url":"https://avatars.githubusercontent.com/u/2789820?v=3","gravatar_id":"","url":"https://api.github.com/users/mhvk","html_url":"https://github.com/mhvk","followers_url":"https://api.github.com/users/mhvk/followers","following_url":"https://api.github.com/users/mhvk/following{/other_user}","gists_url":"https://api.github.com/users/mhvk/gists{/gist_id}","starred_url":"https://api.github.com/users/mhvk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhvk/subscriptions","organizations_url":"https://api.github.com/users/mhvk/orgs","repos_url":"https://api.github.com/users/mhvk/repos","events_url":"https://api.github.com/users/mhvk/events{/privacy}","received_events_url":"https://api.github.com/users/mhvk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mhvk/numpy","description":"Numpy main repository","fork":true,"url":"https://api.github.com/repos/mhvk/numpy","forks_url":"https://api.github.com/repos/mhvk/numpy/forks","keys_url":"https://api.github.com/repos/mhvk/numpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mhvk/numpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mhvk/numpy/teams","hooks_url":"https://api.github.com/repos/mhvk/numpy/hooks","issue_events_url":"https://api.github.com/repos/mhvk/numpy/issues/events{/number}","events_url":"https://api.github.com/repos/mhvk/numpy/events","assignees_url":"https://api.github.com/repos/mhvk/numpy/assignees{/user}","branches_url":"https://api.github.com/repos/mhvk/numpy/branches{/branch}","tags_url":"https://api.github.com/repos/mhvk/numpy/tags","blobs_url":"https://api.github.com/repos/mhvk/numpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mhvk/numpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mhvk/numpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/mhvk/numpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mhvk/numpy/statuses/{sha}","languages_url":"https://api.github.com/repos/mhvk/numpy/languages","stargazers_url":"https://api.github.com/repos/mhvk/numpy/stargazers","contributors_url":"https://api.github.com/repos/mhvk/numpy/contributors","subscribers_url":"https://api.github.com/repos/mhvk/numpy/subscribers","subscription_url":"https://api.github.com/repos/mhvk/numpy/subscription","commits_url":"https://api.github.com/repos/mhvk/numpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/mhvk/numpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/mhvk/numpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/mhvk/numpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/mhvk/numpy/contents/{+path}","compare_url":"https://api.github.com/repos/mhvk/numpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mhvk/numpy/merges","archive_url":"https://api.github.com/repos/mhvk/numpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mhvk/numpy/downloads","issues_url":"https://api.github.com/repos/mhvk/numpy/issues{/number}","pulls_url":"https://api.github.com/repos/mhvk/numpy/pulls{/number}","milestones_url":"https://api.github.com/repos/mhvk/numpy/milestones{/number}","notifications_url":"https://api.github.com/repos/mhvk/numpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mhvk/numpy/labels{/name}","releases_url":"https://api.github.com/repos/mhvk/numpy/releases{/id}","deployments_url":"https://api.github.com/repos/mhvk/numpy/deployments","created_at":"2013-07-17T14:53:04Z","updated_at":"2015-03-10T18:34:41Z","pushed_at":"2016-11-18T19:03:06Z","git_url":"git://github.com/mhvk/numpy.git","ssh_url":"git@github.com:mhvk/numpy.git","clone_url":"https://github.com/mhvk/numpy.git","svn_url":"https://github.com/mhvk/numpy","homepage":"http://www.numpy.org/","size":41866,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"placeholder"}},"base":{"label":"numpy:master","ref":"master","sha":"ec02bdc782f1de83520dfd2c4eb0c48d69c909e6","user":{"login":"numpy","id":288276,"avatar_url":"https://avatars.githubusercontent.com/u/288276?v=3","gravatar_id":"","url":"https://api.github.com/users/numpy","html_url":"https://github.com/numpy","followers_url":"https://api.github.com/users/numpy/followers","following_url":"https://api.github.com/users/numpy/following{/other_user}","gists_url":"https://api.github.com/users/numpy/gists{/gist_id}","starred_url":"https://api.github.com/users/numpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numpy/subscriptions","organizations_url":"https://api.github.com/users/numpy/orgs","repos_url":"https://api.github.com/users/numpy/repos","events_url":"https://api.github.com/users/numpy/events{/privacy}","received_events_url":"https://api.github.com/users/numpy/received_events","type":"Organization","site_admin":false},"repo":{"id":908607,"name":"numpy","full_name":"numpy/numpy","owner":{"login":"numpy","id":288276,"avatar_url":"https://avatars.githubusercontent.com/u/288276?v=3","gravatar_id":"","url":"https://api.github.com/users/numpy","html_url":"https://github.com/numpy","followers_url":"https://api.github.com/users/numpy/followers","following_url":"https://api.github.com/users/numpy/following{/other_user}","gists_url":"https://api.github.com/users/numpy/gists{/gist_id}","starred_url":"https://api.github.com/users/numpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numpy/subscriptions","organizations_url":"https://api.github.com/users/numpy/orgs","repos_url":"https://api.github.com/users/numpy/repos","events_url":"https://api.github.com/users/numpy/events{/privacy}","received_events_url":"https://api.github.com/users/numpy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numpy/numpy","description":"Numpy main repository","fork":false,"url":"https://api.github.com/repos/numpy/numpy","forks_url":"https://api.github.com/repos/numpy/numpy/forks","keys_url":"https://api.github.com/repos/numpy/numpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numpy/numpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numpy/numpy/teams","hooks_url":"https://api.github.com/repos/numpy/numpy/hooks","issue_events_url":"https://api.github.com/repos/numpy/numpy/issues/events{/number}","events_url":"https://api.github.com/repos/numpy/numpy/events","assignees_url":"https://api.github.com/repos/numpy/numpy/assignees{/user}","branches_url":"https://api.github.com/repos/numpy/numpy/branches{/branch}","tags_url":"https://api.github.com/repos/numpy/numpy/tags","blobs_url":"https://api.github.com/repos/numpy/numpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numpy/numpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numpy/numpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/numpy/numpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numpy/numpy/statuses/{sha}","languages_url":"https://api.github.com/repos/numpy/numpy/languages","stargazers_url":"https://api.github.com/repos/numpy/numpy/stargazers","contributors_url":"https://api.github.com/repos/numpy/numpy/contributors","subscribers_url":"https://api.github.com/repos/numpy/numpy/subscribers","subscription_url":"https://api.github.com/repos/numpy/numpy/subscription","commits_url":"https://api.github.com/repos/numpy/numpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/numpy/numpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/numpy/numpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/numpy/numpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/numpy/numpy/contents/{+path}","compare_url":"https://api.github.com/repos/numpy/numpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numpy/numpy/merges","archive_url":"https://api.github.com/repos/numpy/numpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numpy/numpy/downloads","issues_url":"https://api.github.com/repos/numpy/numpy/issues{/number}","pulls_url":"https://api.github.com/repos/numpy/numpy/pulls{/number}","milestones_url":"https://api.github.com/repos/numpy/numpy/milestones{/number}","notifications_url":"https://api.github.com/repos/numpy/numpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numpy/numpy/labels{/name}","releases_url":"https://api.github.com/repos/numpy/numpy/releases{/id}","deployments_url":"https://api.github.com/repos/numpy/numpy/deployments","created_at":"2010-09-13T23:02:39Z","updated_at":"2016-11-18T17:51:29Z","pushed_at":"2016-11-19T00:34:37Z","git_url":"git://github.com/numpy/numpy.git","ssh_url":"git@github.com:numpy/numpy.git","clone_url":"https://github.com/numpy/numpy.git","svn_url":"https://github.com/numpy/numpy","homepage":"http://www.numpy.org/","size":82314,"stargazers_count":3560,"watchers_count":3560,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1794,"mirror_url":null,"open_issues_count":1324,"forks":1794,"open_issues":1324,"watchers":3560,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numpy/numpy/pulls/8290"},"html":{"href":"https://github.com/numpy/numpy/pull/8290"},"issue":{"href":"https://api.github.com/repos/numpy/numpy/issues/8290"},"comments":{"href":"https://api.github.com/repos/numpy/numpy/issues/8290/comments"},"review_comments":{"href":"https://api.github.com/repos/numpy/numpy/pulls/8290/comments"},"review_comment":{"href":"https://api.github.com/repos/numpy/numpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numpy/numpy/pulls/8290/commits"},"statuses":{"href":"https://api.github.com/repos/numpy/numpy/statuses/99cbb78d54b5b2db4f7be33753f2d77e957650ee"}}}}
{"actor":{"display_login":"charris"}}