construct/construct — pull request #34 by Mocramis (2013-09-14 23:20:53+00:00)
Title: adds support of sizeof for PrefixedArray.

PrefixedArray raises an exeption when sizeof is called with its return value as context (which works for most of objects).

Although sizeof is not that important on a built object, i find it quite usefull for space consideration before calling the build method or after parse (paticularilly when the objects do not set the stream pointer properly after being processed).

The problem is added as a test.

The proposed fix is not the prettiest one but adding an module-global function did not seem better and covers most usecases (assuming the user will not provide a build object created from a list-like object that is not a list or a tuple child.).