{"action":"created","issue":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/538","repository_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead","labels_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/538/labels{/name}","comments_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/538/comments","events_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/538/events","html_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/538","id":188029750,"number":538,"title":"Python: Fix #526 add coverage for more classes","user":{"login":"Hestben","id":22500915,"avatar_url":"https://avatars.githubusercontent.com/u/22500915?v=3","gravatar_id":"","url":"https://api.github.com/users/Hestben","html_url":"https://github.com/Hestben","followers_url":"https://api.github.com/users/Hestben/followers","following_url":"https://api.github.com/users/Hestben/following{/other_user}","gists_url":"https://api.github.com/users/Hestben/gists{/gist_id}","starred_url":"https://api.github.com/users/Hestben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hestben/subscriptions","organizations_url":"https://api.github.com/users/Hestben/orgs","repos_url":"https://api.github.com/users/Hestben/repos","events_url":"https://api.github.com/users/Hestben/events{/privacy}","received_events_url":"https://api.github.com/users/Hestben/received_events","type":"User","site_admin":false},"labels":[{"id":430128253,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/labels/Mission:%20Programming","name":"Mission: Programming","color":"60a5da","default":false},{"id":86621799,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/labels/Needs%20Community%20Review","name":"Needs Community Review","color":"bfe5bf","default":false},{"id":176936433,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/labels/Status:%20Work%20In%20Progress","name":"Status: Work In Progress","color":"fbca04","default":false},{"id":439108446,"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/labels/Topic:%20Python","name":"Topic: Python","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"gaulrobe","id":4641626,"avatar_url":"https://avatars.githubusercontent.com/u/4641626?v=3","gravatar_id":"","url":"https://api.github.com/users/gaulrobe","html_url":"https://github.com/gaulrobe","followers_url":"https://api.github.com/users/gaulrobe/followers","following_url":"https://api.github.com/users/gaulrobe/following{/other_user}","gists_url":"https://api.github.com/users/gaulrobe/gists{/gist_id}","starred_url":"https://api.github.com/users/gaulrobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaulrobe/subscriptions","organizations_url":"https://api.github.com/users/gaulrobe/orgs","repos_url":"https://api.github.com/users/gaulrobe/repos","events_url":"https://api.github.com/users/gaulrobe/events{/privacy}","received_events_url":"https://api.github.com/users/gaulrobe/received_events","type":"User","site_admin":false},"assignees":[{"login":"gaulrobe","id":4641626,"avatar_url":"https://avatars.githubusercontent.com/u/4641626?v=3","gravatar_id":"","url":"https://api.github.com/users/gaulrobe","html_url":"https://github.com/gaulrobe","followers_url":"https://api.github.com/users/gaulrobe/followers","following_url":"https://api.github.com/users/gaulrobe/following{/other_user}","gists_url":"https://api.github.com/users/gaulrobe/gists{/gist_id}","starred_url":"https://api.github.com/users/gaulrobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaulrobe/subscriptions","organizations_url":"https://api.github.com/users/gaulrobe/orgs","repos_url":"https://api.github.com/users/gaulrobe/repos","events_url":"https://api.github.com/users/gaulrobe/events{/privacy}","received_events_url":"https://api.github.com/users/gaulrobe/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-11-08T15:56:53Z","updated_at":"2016-11-12T14:26:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/pulls/538","html_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/538","diff_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/538.diff","patch_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/538.patch"},"body":"<!-- Use the appropriate format for your Pull Request title:\r\n\r\n    For a Bug Fix:\r\n    {IA Name}: {Description of change}\r\n\r\n    For a New Instant Answer:\r\n    New {IA Name} Fathead\r\n\r\n    For anything else:\r\n    {Tests/Docs/Other}: {Short Description} -->\r\n\r\n\r\n## Related Issues and Discussions\r\nIssue #526 \r\nI have created this PR to discuss what we should do, and comment on the code.\r\n@souravbadami I see you have touched the code last. Maybe you would like to take this issue, if you have time. I don't want us to do double work =).\r\nFrom my initial investigation, I have found that the view that is shown in the search result in #526 example comes from a Disambiguation entry created in redirect.py.\r\nDoes anybody have an example where a Disambiguation is the correct thing to show? If we strip out some stuff, we wouldn't want to destroy cases where disambiguations should be used.\r\nI have found more cases where I think we would like to change the view, as @jdorweiler suggested in the #526:\r\nhttps://duckduckgo.com/?q=python+shlex&t=ffsb&ia=meanings&iai=%2F35%2Fshlex.quote\r\nhttps://duckduckgo.com/?q=python+pickletools&t=ffsb&ia=meanings&iai=%2F35%2Fpickletools.genops\r\nhttps://duckduckgo.com/?q=python+msvcrt&t=ffsb&ia=meanings\r\n\r\nThe two solutions I can think of after my brief investigation are\r\n\r\n1. Manually specify which classes should not be displayed as disambiguations.\r\n2. Device a way to mine classes from the python docs that don't destroy the disambiguations that should be displayed as disambiguations.\r\n\r\n\r\n## People to notify\r\n@jdorweiler @souravbadami \r\n\r\n<!-- DO NOT REMOVE -->\r\n\n---\r\n\r\n<!-- The Instant Answer ID can be found by clicking the `?` icon beside the Instant Answer result on DuckDuckGo.com -->\r\nInstant Answer Page: https://duck.co/ia/view/python\r\n<!-- FILL THIS IN:                           ^^^^ -->\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/comments/260124968","html_url":"https://github.com/duckduckgo/zeroclickinfo-fathead/pull/538#issuecomment-260124968","issue_url":"https://api.github.com/repos/duckduckgo/zeroclickinfo-fathead/issues/538","id":260124968,"user":{"login":"Hestben","id":22500915,"avatar_url":"https://avatars.githubusercontent.com/u/22500915?v=3","gravatar_id":"","url":"https://api.github.com/users/Hestben","html_url":"https://github.com/Hestben","followers_url":"https://api.github.com/users/Hestben/followers","following_url":"https://api.github.com/users/Hestben/following{/other_user}","gists_url":"https://api.github.com/users/Hestben/gists{/gist_id}","starred_url":"https://api.github.com/users/Hestben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hestben/subscriptions","organizations_url":"https://api.github.com/users/Hestben/orgs","repos_url":"https://api.github.com/users/Hestben/repos","events_url":"https://api.github.com/users/Hestben/events{/privacy}","received_events_url":"https://api.github.com/users/Hestben/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T14:26:41Z","updated_at":"2016-11-12T14:26:41Z","body":"I have extracted all the answers that are outputted as Disambiguations right now:\r\nhttps://duckduckgo.com/?q=python+inspect\r\nhttps://duckduckgo.com/?q=python+asyncio\r\nhttps://duckduckgo.com/?q=python+python2+xml.dom.pulldom\r\nhttps://duckduckgo.com/?q=python+collections\r\nhttps://duckduckgo.com/?q=python+stat\r\nhttps://duckduckgo.com/?q=python+hmac\r\nhttps://duckduckgo.com/?q=python+concurrent.futures\r\nhttps://duckduckgo.com/?q=python+cmath\r\nhttps://duckduckgo.com/?q=python+uu\r\nhttps://duckduckgo.com/?q=python+email.header\r\nhttps://duckduckgo.com/?q=python+colorsys\r\nhttps://duckduckgo.com/?q=python+python2+sysconfig\r\nhttps://duckduckgo.com/?q=python+python2+binascii\r\nhttps://duckduckgo.com/?q=python+glob\r\nhttps://duckduckgo.com/?q=python+urllib.parse\r\nhttps://duckduckgo.com/?q=python+http\r\nhttps://duckduckgo.com/?q=python+python2+winsound\r\nhttps://duckduckgo.com/?q=python+getpass\r\nhttps://duckduckgo.com/?q=python+random\r\nhttps://duckduckgo.com/?q=python+python2+sys\r\nhttps://duckduckgo.com/?q=python+lzma\r\nhttps://duckduckgo.com/?q=python+xml.dom.minidom\r\nhttps://duckduckgo.com/?q=python+python2+socket\r\nhttps://duckduckgo.com/?q=python+python2+xml.sax\r\nhttps://duckduckgo.com/?q=python+python2+warnings\r\nhttps://duckduckgo.com/?q=python+unittest.mock\r\nhttps://duckduckgo.com/?q=python+parser\r\nhttps://duckduckgo.com/?q=python+python2+xml.sax.saxutils\r\nhttps://duckduckgo.com/?q=python+calendar\r\nhttps://duckduckgo.com/?q=python+signal\r\nhttps://duckduckgo.com/?q=python+heapq\r\nhttps://duckduckgo.com/?q=python+python2+operator\r\nhttps://duckduckgo.com/?q=python+socket\r\nhttps://duckduckgo.com/?q=python+csv\r\nhttps://duckduckgo.com/?q=python+imp\r\nhttps://duckduckgo.com/?q=python+python2+pprint\r\nhttps://duckduckgo.com/?q=python+select.devpoll\r\nhttps://duckduckgo.com/?q=python+python2+collections\r\nhttps://duckduckgo.com/?q=python+xml.sax\r\nhttps://duckduckgo.com/?q=python+plistlib\r\nhttps://duckduckgo.com/?q=python+python2+getpass\r\nhttps://duckduckgo.com/?q=python+python2+curses\r\nhttps://duckduckgo.com/?q=python+python2+plistlib\r\nhttps://duckduckgo.com/?q=python+pdb\r\nhttps://duckduckgo.com/?q=python+fpectl\r\nhttps://duckduckgo.com/?q=python+mimetypes\r\nhttps://duckduckgo.com/?q=python+python2+socket.socket\r\nhttps://duckduckgo.com/?q=python+bz2\r\nhttps://duckduckgo.com/?q=python+marshal\r\nhttps://duckduckgo.com/?q=python+shutil\r\nhttps://duckduckgo.com/?q=python+re.match\r\nhttps://duckduckgo.com/?q=python+python2+difflib\r\nhttps://duckduckgo.com/?q=python+hashlib\r\nhttps://duckduckgo.com/?q=python+json\r\nhttps://duckduckgo.com/?q=python+decimal\r\nhttps://duckduckgo.com/?q=python+compileall\r\nhttps://duckduckgo.com/?q=python+traceback\r\nhttps://duckduckgo.com/?q=python+fractions\r\nhttps://duckduckgo.com/?q=python+quopri\r\nhttps://duckduckgo.com/?q=python+python2+uuid\r\nhttps://duckduckgo.com/?q=python+unicodedata\r\nhttps://duckduckgo.com/?q=python+shelve\r\nhttps://duckduckgo.com/?q=python+python2+heapq\r\nhttps://duckduckgo.com/?q=python+email.encoders\r\nhttps://duckduckgo.com/?q=python+tkinter\r\nhttps://duckduckgo.com/?q=python+zipfile\r\nhttps://duckduckgo.com/?q=python+types\r\nhttps://duckduckgo.com/?q=python+multiprocessing\r\nhttps://duckduckgo.com/?q=python+python2+ast\r\nhttps://duckduckgo.com/?q=python+msilib\r\nhttps://duckduckgo.com/?q=python+subprocess\r\nhttps://duckduckgo.com/?q=python+msvcrt\r\nhttps://duckduckgo.com/?q=python+resource\r\nhttps://duckduckgo.com/?q=python+select\r\nhttps://duckduckgo.com/?q=python+pickletools\r\nhttps://duckduckgo.com/?q=python+select.poll\r\nhttps://duckduckgo.com/?q=python+shlex\r\nhttps://duckduckgo.com/?q=python+time\r\nhttps://duckduckgo.com/?q=python+ctypes\r\nhttps://duckduckgo.com/?q=python+dis\r\nhttps://duckduckgo.com/?q=python+operator\r\nhttps://duckduckgo.com/?q=python+syslog\r\nhttps://duckduckgo.com/?q=python+email.utils\r\nhttps://duckduckgo.com/?q=python+xml.dom.pulldom\r\nhttps://duckduckgo.com/?q=python+zlib\r\nhttps://duckduckgo.com/?q=python+python2+tty\r\nhttps://duckduckgo.com/?q=python+re\r\nhttps://duckduckgo.com/?q=python+python2+xml.etree.ElementTree\r\nhttps://duckduckgo.com/?q=python+base64\r\nhttps://duckduckgo.com/?q=python+fileinput\r\nhttps://duckduckgo.com/?q=python+python2+logging\r\nhttps://duckduckgo.com/?q=python+io\r\nhttps://duckduckgo.com/?q=python+tty\r\nhttps://duckduckgo.com/?q=python+python2+csv\r\nhttps://duckduckgo.com/?q=python+curses.panel\r\nhttps://duckduckgo.com/?q=python+difflib\r\nhttps://duckduckgo.com/?q=python+ast\r\nhttps://duckduckgo.com/?q=python+pkgutil\r\nhttps://duckduckgo.com/?q=python+winsound\r\nhttps://duckduckgo.com/?q=python+statistics\r\nhttps://duckduckgo.com/?q=python+python2+os\r\nhttps://duckduckgo.com/?q=python+gc\r\nhttps://duckduckgo.com/?q=python+stringprep\r\nhttps://duckduckgo.com/?q=python+webbrowser\r\nhttps://duckduckgo.com/?q=python+curses.ascii\r\nhttps://duckduckgo.com/?q=python+linecache\r\nhttps://duckduckgo.com/?q=python+zipapp\r\nhttps://duckduckgo.com/?q=python+python2+pickle\r\nhttps://duckduckgo.com/?q=python+socket.socket\r\nhttps://duckduckgo.com/?q=python+python2+doctest\r\nhttps://duckduckgo.com/?q=python+python2+linecache\r\nhttps://duckduckgo.com/?q=python+os.path\r\nhttps://duckduckgo.com/?q=python+curses\r\nhttps://duckduckgo.com/?q=python+doctest\r\nhttps://duckduckgo.com/?q=python+python2+inspect\r\nhttps://duckduckgo.com/?q=python+turtle\r\nhttps://duckduckgo.com/?q=python+sys\r\nhttps://duckduckgo.com/?q=python+modulefinder\r\nhttps://duckduckgo.com/?q=python+typing\r\nhttps://duckduckgo.com/?q=python+python2+bz2\r\nhttps://duckduckgo.com/?q=python+python2+itertools\r\nhttps://duckduckgo.com/?q=python+ossaudiodev\r\nhttps://duckduckgo.com/?q=python+imaplib\r\nhttps://duckduckgo.com/?q=python+python2+hmac\r\nhttps://duckduckgo.com/?q=python+ssl\r\nhttps://duckduckgo.com/?q=python+urllib.request\r\nhttps://duckduckgo.com/?q=python+sysconfig\r\nhttps://duckduckgo.com/?q=python+threading\r\nhttps://duckduckgo.com/?q=python+locale\r\nhttps://duckduckgo.com/?q=python+wave\r\nhttps://duckduckgo.com/?q=python+python2+decimal\r\nhttps://duckduckgo.com/?q=python+winreg\r\nhttps://duckduckgo.com/?q=python+contextlib\r\nhttps://duckduckgo.com/?q=python+python2+fcntl\r\nhttps://duckduckgo.com/?q=python+pprint\r\nhttps://duckduckgo.com/?q=python+code\r\nhttps://duckduckgo.com/?q=python+sunau\r\nhttps://duckduckgo.com/?q=python+readline\r\nhttps://duckduckgo.com/?q=python+textwrap\r\nhttps://duckduckgo.com/?q=python+python2+traceback\r\nhttps://duckduckgo.com/?q=python+_thread\r\nhttps://duckduckgo.com/?q=python+python2+functools\r\nhttps://duckduckgo.com/?q=python+xml.etree.ElementTree\r\nhttps://duckduckgo.com/?q=python+bdb\r\nhttps://duckduckgo.com/?q=python+python2+cgitb\r\nhttps://duckduckgo.com/?q=python+python2+ensurepip\r\nhttps://duckduckgo.com/?q=python+python2+ssl\r\nhttps://duckduckgo.com/?q=python+xml.dom\r\nhttps://duckduckgo.com/?q=python+python2+crypt\r\nhttps://duckduckgo.com/?q=python+binhex\r\nhttps://duckduckgo.com/?q=python+unittest.mock.call\r\nhttps://duckduckgo.com/?q=python+filecmp\r\nhttps://duckduckgo.com/?q=python+logging\r\nhttps://duckduckgo.com/?q=python+tokenize\r\nhttps://duckduckgo.com/?q=python+distutils\r\nhttps://duckduckgo.com/?q=python+python2+audioop\r\nhttps://duckduckgo.com/?q=python+python2+pkgutil\r\nhttps://duckduckgo.com/?q=python+cgi\r\nhttps://duckduckgo.com/?q=python+string\r\nhttps://duckduckgo.com/?q=python+pyclbr\r\nhttps://duckduckgo.com/?q=python+math\r\nhttps://duckduckgo.com/?q=python+itertools\r\nhttps://duckduckgo.com/?q=python+email.contentmanager\r\nhttps://duckduckgo.com/?q=python+keyword\r\nhttps://duckduckgo.com/?q=python+python2+select.epoll\r\nhttps://duckduckgo.com/?q=python+getopt\r\nhttps://duckduckgo.com/?q=python+python2+os.path\r\nhttps://duckduckgo.com/?q=python+email\r\nhttps://duckduckgo.com/?q=python+python2+xml.dom\r\nhttps://duckduckgo.com/?q=python+fnmatch\r\nhttps://duckduckgo.com/?q=python+dbm\r\nhttps://duckduckgo.com/?q=python+termios\r\nhttps://duckduckgo.com/?q=python+os\r\nhttps://duckduckgo.com/?q=python+select.epoll\r\nhttps://duckduckgo.com/?q=python+python2+tempfile\r\nhttps://duckduckgo.com/?q=python+codecs\r\nhttps://duckduckgo.com/?q=python+python2+unittest\r\nhttps://duckduckgo.com/?q=python+python2+textwrap\r\nhttps://duckduckgo.com/?q=python+bisect\r\nhttps://duckduckgo.com/?q=python+python2+dbm\r\nhttps://duckduckgo.com/?q=python+python2+binhex\r\nhttps://duckduckgo.com/?q=python+binascii\r\nhttps://duckduckgo.com/?q=python+ipaddress\r\nhttps://duckduckgo.com/?q=python+python2+codecs\r\nhttps://duckduckgo.com/?q=python+faulthandler\r\nhttps://duckduckgo.com/?q=python+python2+threading\r\nhttps://duckduckgo.com/?q=python+importlib\r\nhttps://duckduckgo.com/?q=python+pickle\r\nhttps://duckduckgo.com/?q=python+unittest\r\nhttps://duckduckgo.com/?q=python+struct\r\nhttps://duckduckgo.com/?q=python+python2+sndhdr\r\nhttps://duckduckgo.com/?q=python+tarfile\r\nhttps://duckduckgo.com/?q=python+python2+unicodedata\r\nhttps://duckduckgo.com/?q=python+pty\r\nhttps://duckduckgo.com/?q=python+tracemalloc\r\nhttps://duckduckgo.com/?q=python+py_compile\r\nhttps://duckduckgo.com/?q=python+xml.sax.saxutils\r\nhttps://duckduckgo.com/?q=python+python2+locale\r\nhttps://duckduckgo.com/?q=python+aifc\r\nhttps://duckduckgo.com/?q=python+email.iterators\r\nhttps://duckduckgo.com/?q=python+python2+turtle\r\nhttps://duckduckgo.com/?q=python+collections.OrderedDict\r\nhttps://duckduckgo.com/?q=python+functools\r\nhttps://duckduckgo.com/?q=python+python2+io\r\nhttps://duckduckgo.com/?q=python+gzip\r\nhttps://duckduckgo.com/?q=python+python2+importlib\r\nhttps://duckduckgo.com/?q=python+python2+json\r\nhttps://duckduckgo.com/?q=python+runpy\r\nhttps://duckduckgo.com/?q=python+python2+xml.dom.minidom\r\nhttps://duckduckgo.com/?q=python+python2+subprocess\r\nhttps://duckduckgo.com/?q=python+python2+string\r\nhttps://duckduckgo.com/?q=python+timeit\r\nhttps://duckduckgo.com/?q=python+python2+timeit\r\nhttps://duckduckgo.com/?q=python+site\r\nhttps://duckduckgo.com/?q=python+audioop\r\nhttps://duckduckgo.com/?q=python+xml.parsers.expat\r\n\r\nSome don't trigger an IA, though, like \r\nhttps://duckduckgo.com/?q=python+concurrent.futures\r\nThe disambiguations with \"python2\" seems to be an error, like\r\nhttps://duckduckgo.com/?q=python+python2+string"}}
{"actor":{"display_login":"Hestben"}}