def __call__(self, num):
        """Define this as an array of elements."""
        # Special case - strings already handled as one blob.
        if self.typecode in 'sp':
            # Strings handled specially - only one item
            return Element('%ds' % num)
        else:
            return ArrayElement(self, num)
Define this as an array of elements.
recipes/Python/498149_A_higher_level_struct_module/recipe-498149.py