#NEWLINE# def begin_group( self , indent = 0 , open = '' ) : #NEWLINE# #INDENT# "\n        Begin a group.  If you want support for python < 2.5 which doesn't has\n        the with statement this is the preferred way:\n\n            p.begin_group(1, '{')\n            ...\n            p.end_group(1, '}')\n\n        The python 2.5 expression would be this:\n\n            with p.group(1, '{', '}'):\n                ...\n\n        The first parameter specifies the indentation for the next line (usually\n        the width of the opening text), the second the opening text.  All\n        parameters are optional.\n        " #NEWLINE# if self : #NEWLINE# #INDENT# self . text ( open ) #NEWLINE# #UNINDENT# group = Group ( ( self . group_stack [ ( - 1 ) ] . depth + 1 ) ) #NEWLINE# self . group_stack . append ( group ) #NEWLINE# self . group_queue . enq ( group ) #NEWLINE# self . indentation += indent