{"action":"created","issue":{"url":"https://api.github.com/repos/PyconUK/ConferenceScheduler/issues/74","repository_url":"https://api.github.com/repos/PyconUK/ConferenceScheduler","labels_url":"https://api.github.com/repos/PyconUK/ConferenceScheduler/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/PyconUK/ConferenceScheduler/issues/74/comments","events_url":"https://api.github.com/repos/PyconUK/ConferenceScheduler/issues/74/events","html_url":"https://github.com/PyconUK/ConferenceScheduler/pull/74","id":227775026,"number":74,"title":"Set default values for `tags` and `availability`","user":{"login":"alexwlchan","id":301220,"avatar_url":"https://avatars3.githubusercontent.com/u/301220?v=3","gravatar_id":"","url":"https://api.github.com/users/alexwlchan","html_url":"https://github.com/alexwlchan","followers_url":"https://api.github.com/users/alexwlchan/followers","following_url":"https://api.github.com/users/alexwlchan/following{/other_user}","gists_url":"https://api.github.com/users/alexwlchan/gists{/gist_id}","starred_url":"https://api.github.com/users/alexwlchan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexwlchan/subscriptions","organizations_url":"https://api.github.com/users/alexwlchan/orgs","repos_url":"https://api.github.com/users/alexwlchan/repos","events_url":"https://api.github.com/users/alexwlchan/events{/privacy}","received_events_url":"https://api.github.com/users/alexwlchan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":26,"created_at":"2017-05-10T18:46:47Z","updated_at":"2017-05-10T19:20:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PyconUK/ConferenceScheduler/pulls/74","html_url":"https://github.com/PyconUK/ConferenceScheduler/pull/74","diff_url":"https://github.com/PyconUK/ConferenceScheduler/pull/74.diff","patch_url":"https://github.com/PyconUK/ConferenceScheduler/pull/74.patch"},"body":"Setting default arguments on a namedtuple is moderately fiddly, but this seems to work. Prints in the same way as the original, and has no effect on occupancy:\r\n\r\n```pycon\r\n>>> from conference_scheduler.resources import BaseEvent, Event\r\n>>> e = BaseEvent(name='example', duration=60, demand=100, tags=[], unavailability=[])\r\n>>> f = Event(name='example', duration=60, demand=100)\r\n>>> f\r\nEvent(name='example', duration=60, demand=100, tags=[], unavailability=[])\r\n>>> assert e.__sizeof__() == f.__sizeof__()\r\n```\r\n\r\nResolves #73."},"comment":{"url":"https://api.github.com/repos/PyconUK/ConferenceScheduler/issues/comments/300586007","html_url":"https://github.com/PyconUK/ConferenceScheduler/pull/74#issuecomment-300586007","issue_url":"https://api.github.com/repos/PyconUK/ConferenceScheduler/issues/74","id":300586007,"user":{"login":"meatballs","id":338846,"avatar_url":"https://avatars2.githubusercontent.com/u/338846?v=3","gravatar_id":"","url":"https://api.github.com/users/meatballs","html_url":"https://github.com/meatballs","followers_url":"https://api.github.com/users/meatballs/followers","following_url":"https://api.github.com/users/meatballs/following{/other_user}","gists_url":"https://api.github.com/users/meatballs/gists{/gist_id}","starred_url":"https://api.github.com/users/meatballs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meatballs/subscriptions","organizations_url":"https://api.github.com/users/meatballs/orgs","repos_url":"https://api.github.com/users/meatballs/repos","events_url":"https://api.github.com/users/meatballs/events{/privacy}","received_events_url":"https://api.github.com/users/meatballs/received_events","type":"User","site_admin":false},"created_at":"2017-05-10T19:20:13Z","updated_at":"2017-05-10T19:20:13Z","body":"so the default argument in that example should be `None` rather than `[]`"}}
{"actor":{"display_login":"meatballs"}}