{"action":"closed","issue":{"url":"https://api.github.com/repos/apertium/phenny/issues/249","repository_url":"https://api.github.com/repos/apertium/phenny","labels_url":"https://api.github.com/repos/apertium/phenny/issues/249/labels{/name}","comments_url":"https://api.github.com/repos/apertium/phenny/issues/249/comments","events_url":"https://api.github.com/repos/apertium/phenny/issues/249/events","html_url":"https://github.com/apertium/phenny/issues/249","id":221902788,"number":249,"title":"Reload quirks","user":{"login":"shardulc","id":10349624,"avatar_url":"https://avatars2.githubusercontent.com/u/10349624?v=4","gravatar_id":"","url":"https://api.github.com/users/shardulc","html_url":"https://github.com/shardulc","followers_url":"https://api.github.com/users/shardulc/followers","following_url":"https://api.github.com/users/shardulc/following{/other_user}","gists_url":"https://api.github.com/users/shardulc/gists{/gist_id}","starred_url":"https://api.github.com/users/shardulc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shardulc/subscriptions","organizations_url":"https://api.github.com/users/shardulc/orgs","repos_url":"https://api.github.com/users/shardulc/repos","events_url":"https://api.github.com/users/shardulc/events{/privacy}","received_events_url":"https://api.github.com/users/shardulc/received_events","type":"User","site_admin":false},"labels":[{"id":22928602,"url":"https://api.github.com/repos/apertium/phenny/labels/bug","name":"bug","color":"fc2929","default":true},{"id":734560526,"url":"https://api.github.com/repos/apertium/phenny/labels/modules","name":"modules","color":"c9f4ff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-14T22:24:34Z","updated_at":"2018-03-19T15:01:37Z","closed_at":"2018-03-19T15:01:37Z","author_association":"OWNER","body":"In most use-cases, `reload.py` can reload modules with no issues. However, consider the Wikipedia module: some commands like `.wik` are called directly, while others, like detecting Wikipedia URLs and providing snippets, are called from `head.py`. For this the `head.py` file has a line saying `import wikipedia`. When the Wikipedia module is reloaded, commands like `.wik` change their behavior appropriately, but the `wikipedia` that `head.py` knows about doesn't change.\r\n\r\nI feel that the expected behavior is that *all* instances of the module change upon reloading. To achieve this, perhaps a different method of reloading is required, but I can't think of an elegant one: thoughts?"}}
{"actor":{"display_login":"Androbin"}}