{"action":"created","comment":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments/60843666","id":60843666,"diff_hunk":"@@ -44,3 +46,44 @@ def test_function_signatures():\n \n     rv = parse('func(a=[][, b=None])')\n     assert text_type(rv) == u'a=[], [b=None]'\n+\n+@with_app('html', testroot='domain-py')\n+def test_memory_address(app, status, warning):\n+    app.builder.build_all()\n+    g_refs = 0\n+    for f in ['index.html','searchindex.js']:\n+        t = (app.outdir / f).text()\n+        refs = t.count(\"0x\")\n+        g_refs += refs\n+        if refs>0:\n+            print(\"A memory address was found %d times in the %s file.\" % (refs,f))","path":"tests/test_domain_py.py","position":23,"original_position":23,"commit_id":"341678fd51ef67d9f4f4ce56e9c77e569f4d6215","original_commit_id":"341678fd51ef67d9f4f4ce56e9c77e569f4d6215","user":{"login":"mitya57","id":1381584,"avatar_url":"https://avatars.githubusercontent.com/u/1381584?v=3","gravatar_id":"","url":"https://api.github.com/users/mitya57","html_url":"https://github.com/mitya57","followers_url":"https://api.github.com/users/mitya57/followers","following_url":"https://api.github.com/users/mitya57/following{/other_user}","gists_url":"https://api.github.com/users/mitya57/gists{/gist_id}","starred_url":"https://api.github.com/users/mitya57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitya57/subscriptions","organizations_url":"https://api.github.com/users/mitya57/orgs","repos_url":"https://api.github.com/users/mitya57/repos","events_url":"https://api.github.com/users/mitya57/events{/privacy}","received_events_url":"https://api.github.com/users/mitya57/received_events","type":"User","site_admin":false},"body":"Just use\r\n\r\n```python\r\nassert refs == 0, \"A memory address was found %d times in the file %s.\" % (refs, f)\r\n```\r\n\r\nand delete `g_refs` — it will be much cleaner and simplier.","created_at":"2016-04-24T12:25:20Z","updated_at":"2016-04-24T12:25:20Z","html_url":"https://github.com/sphinx-doc/sphinx/pull/2480#discussion_r60843666","pull_request_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/2480","_links":{"self":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments/60843666"},"html":{"href":"https://github.com/sphinx-doc/sphinx/pull/2480#discussion_r60843666"},"pull_request":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/2480"}}},"pull_request":{"url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/2480","id":67430559,"html_url":"https://github.com/sphinx-doc/sphinx/pull/2480","diff_url":"https://github.com/sphinx-doc/sphinx/pull/2480.diff","patch_url":"https://github.com/sphinx-doc/sphinx/pull/2480.patch","issue_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2480","number":2480,"state":"open","locked":false,"title":"Hide memory addresses from python documentation","user":{"login":"JojoBoulix","id":7106362,"avatar_url":"https://avatars.githubusercontent.com/u/7106362?v=3","gravatar_id":"","url":"https://api.github.com/users/JojoBoulix","html_url":"https://github.com/JojoBoulix","followers_url":"https://api.github.com/users/JojoBoulix/followers","following_url":"https://api.github.com/users/JojoBoulix/following{/other_user}","gists_url":"https://api.github.com/users/JojoBoulix/gists{/gist_id}","starred_url":"https://api.github.com/users/JojoBoulix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JojoBoulix/subscriptions","organizations_url":"https://api.github.com/users/JojoBoulix/orgs","repos_url":"https://api.github.com/users/JojoBoulix/repos","events_url":"https://api.github.com/users/JojoBoulix/events{/privacy}","received_events_url":"https://api.github.com/users/JojoBoulix/received_events","type":"User","site_admin":false},"body":"Some modules includes memory addresses of eg. functions that occurs in default values of methods' arguments. These has to be removed from the documentation.\r\nAlso, this avoids reproducible build of such modules - see https://wiki.debian.org/ReproducibleBuilds/ and https://tests.reproducible-builds.org/issues/unstable/randomness_in_documentation_generated_by_sphinx_issue.html","created_at":"2016-04-21T22:09:45Z","updated_at":"2016-04-24T12:25:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39f3546a7da2ebca24624db39add01170a5671bc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/2480/commits","review_comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/2480/comments","review_comment_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2480/comments","statuses_url":"https://api.github.com/repos/sphinx-doc/sphinx/statuses/341678fd51ef67d9f4f4ce56e9c77e569f4d6215","head":{"label":"JojoBoulix:master","ref":"master","sha":"341678fd51ef67d9f4f4ce56e9c77e569f4d6215","user":{"login":"JojoBoulix","id":7106362,"avatar_url":"https://avatars.githubusercontent.com/u/7106362?v=3","gravatar_id":"","url":"https://api.github.com/users/JojoBoulix","html_url":"https://github.com/JojoBoulix","followers_url":"https://api.github.com/users/JojoBoulix/followers","following_url":"https://api.github.com/users/JojoBoulix/following{/other_user}","gists_url":"https://api.github.com/users/JojoBoulix/gists{/gist_id}","starred_url":"https://api.github.com/users/JojoBoulix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JojoBoulix/subscriptions","organizations_url":"https://api.github.com/users/JojoBoulix/orgs","repos_url":"https://api.github.com/users/JojoBoulix/repos","events_url":"https://api.github.com/users/JojoBoulix/events{/privacy}","received_events_url":"https://api.github.com/users/JojoBoulix/received_events","type":"User","site_admin":false},"repo":{"id":56799570,"name":"sphinx","full_name":"JojoBoulix/sphinx","owner":{"login":"JojoBoulix","id":7106362,"avatar_url":"https://avatars.githubusercontent.com/u/7106362?v=3","gravatar_id":"","url":"https://api.github.com/users/JojoBoulix","html_url":"https://github.com/JojoBoulix","followers_url":"https://api.github.com/users/JojoBoulix/followers","following_url":"https://api.github.com/users/JojoBoulix/following{/other_user}","gists_url":"https://api.github.com/users/JojoBoulix/gists{/gist_id}","starred_url":"https://api.github.com/users/JojoBoulix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JojoBoulix/subscriptions","organizations_url":"https://api.github.com/users/JojoBoulix/orgs","repos_url":"https://api.github.com/users/JojoBoulix/repos","events_url":"https://api.github.com/users/JojoBoulix/events{/privacy}","received_events_url":"https://api.github.com/users/JojoBoulix/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JojoBoulix/sphinx","description":"Main repository for the Sphinx documentation builder","fork":true,"url":"https://api.github.com/repos/JojoBoulix/sphinx","forks_url":"https://api.github.com/repos/JojoBoulix/sphinx/forks","keys_url":"https://api.github.com/repos/JojoBoulix/sphinx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JojoBoulix/sphinx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JojoBoulix/sphinx/teams","hooks_url":"https://api.github.com/repos/JojoBoulix/sphinx/hooks","issue_events_url":"https://api.github.com/repos/JojoBoulix/sphinx/issues/events{/number}","events_url":"https://api.github.com/repos/JojoBoulix/sphinx/events","assignees_url":"https://api.github.com/repos/JojoBoulix/sphinx/assignees{/user}","branches_url":"https://api.github.com/repos/JojoBoulix/sphinx/branches{/branch}","tags_url":"https://api.github.com/repos/JojoBoulix/sphinx/tags","blobs_url":"https://api.github.com/repos/JojoBoulix/sphinx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JojoBoulix/sphinx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JojoBoulix/sphinx/git/refs{/sha}","trees_url":"https://api.github.com/repos/JojoBoulix/sphinx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JojoBoulix/sphinx/statuses/{sha}","languages_url":"https://api.github.com/repos/JojoBoulix/sphinx/languages","stargazers_url":"https://api.github.com/repos/JojoBoulix/sphinx/stargazers","contributors_url":"https://api.github.com/repos/JojoBoulix/sphinx/contributors","subscribers_url":"https://api.github.com/repos/JojoBoulix/sphinx/subscribers","subscription_url":"https://api.github.com/repos/JojoBoulix/sphinx/subscription","commits_url":"https://api.github.com/repos/JojoBoulix/sphinx/commits{/sha}","git_commits_url":"https://api.github.com/repos/JojoBoulix/sphinx/git/commits{/sha}","comments_url":"https://api.github.com/repos/JojoBoulix/sphinx/comments{/number}","issue_comment_url":"https://api.github.com/repos/JojoBoulix/sphinx/issues/comments{/number}","contents_url":"https://api.github.com/repos/JojoBoulix/sphinx/contents/{+path}","compare_url":"https://api.github.com/repos/JojoBoulix/sphinx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JojoBoulix/sphinx/merges","archive_url":"https://api.github.com/repos/JojoBoulix/sphinx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JojoBoulix/sphinx/downloads","issues_url":"https://api.github.com/repos/JojoBoulix/sphinx/issues{/number}","pulls_url":"https://api.github.com/repos/JojoBoulix/sphinx/pulls{/number}","milestones_url":"https://api.github.com/repos/JojoBoulix/sphinx/milestones{/number}","notifications_url":"https://api.github.com/repos/JojoBoulix/sphinx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JojoBoulix/sphinx/labels{/name}","releases_url":"https://api.github.com/repos/JojoBoulix/sphinx/releases{/id}","deployments_url":"https://api.github.com/repos/JojoBoulix/sphinx/deployments","created_at":"2016-04-21T19:16:25Z","updated_at":"2016-04-21T19:16:27Z","pushed_at":"2016-04-21T22:18:46Z","git_url":"git://github.com/JojoBoulix/sphinx.git","ssh_url":"git@github.com:JojoBoulix/sphinx.git","clone_url":"https://github.com/JojoBoulix/sphinx.git","svn_url":"https://github.com/JojoBoulix/sphinx","homepage":"http://sphinx-doc.org","size":14977,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"master"}},"base":{"label":"sphinx-doc:master","ref":"master","sha":"4959a75c6fb3d48fdb85514b1c1f043690806d82","user":{"login":"sphinx-doc","id":9928167,"avatar_url":"https://avatars.githubusercontent.com/u/9928167?v=3","gravatar_id":"","url":"https://api.github.com/users/sphinx-doc","html_url":"https://github.com/sphinx-doc","followers_url":"https://api.github.com/users/sphinx-doc/followers","following_url":"https://api.github.com/users/sphinx-doc/following{/other_user}","gists_url":"https://api.github.com/users/sphinx-doc/gists{/gist_id}","starred_url":"https://api.github.com/users/sphinx-doc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphinx-doc/subscriptions","organizations_url":"https://api.github.com/users/sphinx-doc/orgs","repos_url":"https://api.github.com/users/sphinx-doc/repos","events_url":"https://api.github.com/users/sphinx-doc/events{/privacy}","received_events_url":"https://api.github.com/users/sphinx-doc/received_events","type":"Organization","site_admin":false},"repo":{"id":28710753,"name":"sphinx","full_name":"sphinx-doc/sphinx","owner":{"login":"sphinx-doc","id":9928167,"avatar_url":"https://avatars.githubusercontent.com/u/9928167?v=3","gravatar_id":"","url":"https://api.github.com/users/sphinx-doc","html_url":"https://github.com/sphinx-doc","followers_url":"https://api.github.com/users/sphinx-doc/followers","following_url":"https://api.github.com/users/sphinx-doc/following{/other_user}","gists_url":"https://api.github.com/users/sphinx-doc/gists{/gist_id}","starred_url":"https://api.github.com/users/sphinx-doc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sphinx-doc/subscriptions","organizations_url":"https://api.github.com/users/sphinx-doc/orgs","repos_url":"https://api.github.com/users/sphinx-doc/repos","events_url":"https://api.github.com/users/sphinx-doc/events{/privacy}","received_events_url":"https://api.github.com/users/sphinx-doc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sphinx-doc/sphinx","description":"Main repository for the Sphinx documentation builder","fork":false,"url":"https://api.github.com/repos/sphinx-doc/sphinx","forks_url":"https://api.github.com/repos/sphinx-doc/sphinx/forks","keys_url":"https://api.github.com/repos/sphinx-doc/sphinx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sphinx-doc/sphinx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sphinx-doc/sphinx/teams","hooks_url":"https://api.github.com/repos/sphinx-doc/sphinx/hooks","issue_events_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/events{/number}","events_url":"https://api.github.com/repos/sphinx-doc/sphinx/events","assignees_url":"https://api.github.com/repos/sphinx-doc/sphinx/assignees{/user}","branches_url":"https://api.github.com/repos/sphinx-doc/sphinx/branches{/branch}","tags_url":"https://api.github.com/repos/sphinx-doc/sphinx/tags","blobs_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/refs{/sha}","trees_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sphinx-doc/sphinx/statuses/{sha}","languages_url":"https://api.github.com/repos/sphinx-doc/sphinx/languages","stargazers_url":"https://api.github.com/repos/sphinx-doc/sphinx/stargazers","contributors_url":"https://api.github.com/repos/sphinx-doc/sphinx/contributors","subscribers_url":"https://api.github.com/repos/sphinx-doc/sphinx/subscribers","subscription_url":"https://api.github.com/repos/sphinx-doc/sphinx/subscription","commits_url":"https://api.github.com/repos/sphinx-doc/sphinx/commits{/sha}","git_commits_url":"https://api.github.com/repos/sphinx-doc/sphinx/git/commits{/sha}","comments_url":"https://api.github.com/repos/sphinx-doc/sphinx/comments{/number}","issue_comment_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues/comments{/number}","contents_url":"https://api.github.com/repos/sphinx-doc/sphinx/contents/{+path}","compare_url":"https://api.github.com/repos/sphinx-doc/sphinx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sphinx-doc/sphinx/merges","archive_url":"https://api.github.com/repos/sphinx-doc/sphinx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sphinx-doc/sphinx/downloads","issues_url":"https://api.github.com/repos/sphinx-doc/sphinx/issues{/number}","pulls_url":"https://api.github.com/repos/sphinx-doc/sphinx/pulls{/number}","milestones_url":"https://api.github.com/repos/sphinx-doc/sphinx/milestones{/number}","notifications_url":"https://api.github.com/repos/sphinx-doc/sphinx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sphinx-doc/sphinx/labels{/name}","releases_url":"https://api.github.com/repos/sphinx-doc/sphinx/releases{/id}","deployments_url":"https://api.github.com/repos/sphinx-doc/sphinx/deployments","created_at":"2015-01-02T10:53:28Z","updated_at":"2016-04-23T19:23:13Z","pushed_at":"2016-04-24T05:00:22Z","git_url":"git://github.com/sphinx-doc/sphinx.git","ssh_url":"git@github.com:sphinx-doc/sphinx.git","clone_url":"https://github.com/sphinx-doc/sphinx.git","svn_url":"https://github.com/sphinx-doc/sphinx","homepage":"http://sphinx-doc.org","size":20735,"stargazers_count":624,"watchers_count":624,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":316,"mirror_url":null,"open_issues_count":525,"forks":316,"open_issues":525,"watchers":624,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/2480"},"html":{"href":"https://github.com/sphinx-doc/sphinx/pull/2480"},"issue":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2480"},"comments":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/issues/2480/comments"},"review_comments":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/2480/comments"},"review_comment":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/pulls/2480/commits"},"statuses":{"href":"https://api.github.com/repos/sphinx-doc/sphinx/statuses/341678fd51ef67d9f4f4ce56e9c77e569f4d6215"}}}}