{"action":"created","issue":{"url":"https://api.github.com/repos/dask/dask/issues/4143","repository_url":"https://api.github.com/repos/dask/dask","labels_url":"https://api.github.com/repos/dask/dask/issues/4143/labels{/name}","comments_url":"https://api.github.com/repos/dask/dask/issues/4143/comments","events_url":"https://api.github.com/repos/dask/dask/issues/4143/events","html_url":"https://github.com/dask/dask/pull/4143","id":374496168,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MTg2MzAz","number":4143,"title":"Dask.config set and get normalize underscores and hyphens","user":{"login":"jrbourbeau","id":11656932,"node_id":"MDQ6VXNlcjExNjU2OTMy","avatar_url":"https://avatars1.githubusercontent.com/u/11656932?v=4","gravatar_id":"","url":"https://api.github.com/users/jrbourbeau","html_url":"https://github.com/jrbourbeau","followers_url":"https://api.github.com/users/jrbourbeau/followers","following_url":"https://api.github.com/users/jrbourbeau/following{/other_user}","gists_url":"https://api.github.com/users/jrbourbeau/gists{/gist_id}","starred_url":"https://api.github.com/users/jrbourbeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrbourbeau/subscriptions","organizations_url":"https://api.github.com/users/jrbourbeau/orgs","repos_url":"https://api.github.com/users/jrbourbeau/repos","events_url":"https://api.github.com/users/jrbourbeau/events{/privacy}","received_events_url":"https://api.github.com/users/jrbourbeau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-26T18:24:59Z","updated_at":"2018-10-26T20:57:21Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/dask/dask/pulls/4143","html_url":"https://github.com/dask/dask/pull/4143","diff_url":"https://github.com/dask/dask/pull/4143.diff","patch_url":"https://github.com/dask/dask/pull/4143.patch"},"body":"This PR updates `dask.config.get` and `dask.config.set` to both replace single underscores with hyphens. The motivation for this is to avoid a mis-match between configuration variables in Python with underscores, e.g., \r\n\r\n```python\r\nwith dask.config.set(num_workers=5):\r\n    ...\r\n```\r\n \r\nand environment variables, e.g. `DASK_NUM_WORKERS`, which already replace `'_'` with `'-'`.\r\n\r\nFixes #4141\r\n\r\n- [ ] Tests added / passed\r\n- [ ] Passes `flake8 dask`\r\n"},"comment":{"url":"https://api.github.com/repos/dask/dask/issues/comments/433541268","html_url":"https://github.com/dask/dask/pull/4143#issuecomment-433541268","issue_url":"https://api.github.com/repos/dask/dask/issues/4143","id":433541268,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzU0MTI2OA==","user":{"login":"mrocklin","id":306380,"node_id":"MDQ6VXNlcjMwNjM4MA==","avatar_url":"https://avatars3.githubusercontent.com/u/306380?v=4","gravatar_id":"","url":"https://api.github.com/users/mrocklin","html_url":"https://github.com/mrocklin","followers_url":"https://api.github.com/users/mrocklin/followers","following_url":"https://api.github.com/users/mrocklin/following{/other_user}","gists_url":"https://api.github.com/users/mrocklin/gists{/gist_id}","starred_url":"https://api.github.com/users/mrocklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrocklin/subscriptions","organizations_url":"https://api.github.com/users/mrocklin/orgs","repos_url":"https://api.github.com/users/mrocklin/repos","events_url":"https://api.github.com/users/mrocklin/events{/privacy}","received_events_url":"https://api.github.com/users/mrocklin/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T20:57:21Z","updated_at":"2018-10-26T20:57:21Z","author_association":"MEMBER","body":"The proposal in this PR is to make `scheduler_address` and `scheduler-address` the same, so as to avoid this issue."}}
{"actor":{"display_login":"mrocklin"}}