{"action":"opened","issue":{"url":"https://api.github.com/repos/alexras/bread/issues/10","labels_url":"https://api.github.com/repos/alexras/bread/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/alexras/bread/issues/10/comments","events_url":"https://api.github.com/repos/alexras/bread/issues/10/events","html_url":"https://github.com/alexras/bread/issues/10","id":99929155,"number":10,"title":"Ability to create a new object already filled with existing data","user":{"login":"cyberic99","id":193917,"avatar_url":"https://avatars.githubusercontent.com/u/193917?v=3","gravatar_id":"","url":"https://api.github.com/users/cyberic99","html_url":"https://github.com/cyberic99","followers_url":"https://api.github.com/users/cyberic99/followers","following_url":"https://api.github.com/users/cyberic99/following{/other_user}","gists_url":"https://api.github.com/users/cyberic99/gists{/gist_id}","starred_url":"https://api.github.com/users/cyberic99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyberic99/subscriptions","organizations_url":"https://api.github.com/users/cyberic99/orgs","repos_url":"https://api.github.com/users/cyberic99/repos","events_url":"https://api.github.com/users/cyberic99/events{/privacy}","received_events_url":"https://api.github.com/users/cyberic99/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-09T21:08:20Z","updated_at":"2015-08-09T21:08:20Z","closed_at":null,"body":"Could you please consider adding an extra arg to the 'new' constructor, to be able to make a new struct, but already initialized instead of using default values?\r\nIf, for instance, I have:\r\n```\r\nformat_spec = [(\"greeting\", b.string(5)),  (\"age\", b.nibble)]\r\n```\r\nIt would be practical to do that, particularly for complex objects:\r\n```\r\nempty_struct = b.new(format_spec, init_from={\"greeting\":\"hello\", \"age\": 0xb})\r\n```\r\ninstead of:\r\n```\r\nempty_struct = b.new(format_spec)\r\nempty_struct.greeting = 'hello'\r\nempty_struct.age = 0xb\r\n```\r\nThank you"}}