#NEWLINE# def __len__( self ) : #NEWLINE# #INDENT# opt_fmtlen = struct . calcsize ( '' . join ( self . opt_fields_fmts ( ) [ 1 ] ) ) #NEWLINE# return ( ( ( self . __hdr_len__ + opt_fmtlen ) + sum ( map ( len , self . sre ) ) ) + len ( opt_fmtlen . data ) )