{"action":"created","issue":{"url":"https://api.github.com/repos/construct/construct/issues/46","labels_url":"https://api.github.com/repos/construct/construct/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/construct/construct/issues/46/comments","events_url":"https://api.github.com/repos/construct/construct/issues/46/events","html_url":"https://github.com/construct/construct/issues/46","id":43181557,"number":46,"title":"ULInt24 throws a field error when building","user":{"login":"Lambdanaut","id":293662,"avatar_url":"https://avatars.githubusercontent.com/u/293662?v=3","gravatar_id":"","url":"https://api.github.com/users/Lambdanaut","html_url":"https://github.com/Lambdanaut","followers_url":"https://api.github.com/users/Lambdanaut/followers","following_url":"https://api.github.com/users/Lambdanaut/following{/other_user}","gists_url":"https://api.github.com/users/Lambdanaut/gists{/gist_id}","starred_url":"https://api.github.com/users/Lambdanaut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lambdanaut/subscriptions","organizations_url":"https://api.github.com/users/Lambdanaut/orgs","repos_url":"https://api.github.com/users/Lambdanaut/repos","events_url":"https://api.github.com/users/Lambdanaut/events{/privacy}","received_events_url":"https://api.github.com/users/Lambdanaut/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-09-18T21:36:00Z","updated_at":"2015-06-08T10:43:02Z","closed_at":null,"body":"ULInt24 is a weird case in that it has the same format as all of the other multi-byte parsers, but it acts very differently. \r\n\r\nIt does seem to work when parsing a binary, but the struct library will throw a Field Error when building a binary. \r\n\r\n    >>> parser = Struct('foo', ULInt24('my_24bit_thing'))\r\n    >>> parser.build(Container(my_24bit_thing=123))\r\n    FieldError(error('pack expected 2 items for packing (got 1)',)\r\n\r\nAny hints on getting this to work or is it just broken? I'm replacing all ULInt24 parsers in my code with BitFields for now. "},"comment":{"url":"https://api.github.com/repos/construct/construct/issues/comments/109946430","html_url":"https://github.com/construct/construct/issues/46#issuecomment-109946430","issue_url":"https://api.github.com/repos/construct/construct/issues/46","id":109946430,"user":{"login":"fl0v0","id":6675656,"avatar_url":"https://avatars.githubusercontent.com/u/6675656?v=3","gravatar_id":"","url":"https://api.github.com/users/fl0v0","html_url":"https://github.com/fl0v0","followers_url":"https://api.github.com/users/fl0v0/followers","following_url":"https://api.github.com/users/fl0v0/following{/other_user}","gists_url":"https://api.github.com/users/fl0v0/gists{/gist_id}","starred_url":"https://api.github.com/users/fl0v0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fl0v0/subscriptions","organizations_url":"https://api.github.com/users/fl0v0/orgs","repos_url":"https://api.github.com/users/fl0v0/repos","events_url":"https://api.github.com/users/fl0v0/events{/privacy}","received_events_url":"https://api.github.com/users/fl0v0/received_events","type":"User","site_admin":false},"created_at":"2015-06-08T10:43:02Z","updated_at":"2015-06-08T10:43:02Z","body":"I can confirm that."}}