( self )
return cpy
Make a copy of this ParserElement.  Useful for defining different parse actions
           for the same parsing pattern, using copies of the original parse element.
Make a copy of this ParserElement.  Useful for defining different parse actions
           for the same parsing pattern, using copies of the original parse element.
Make a copy of this ParserElement . Useful for defining different parse actions for the same parsing pattern using copies of the original parse element .
def copy( self ):
        """Make a copy of this ParserElement.  Useful for defining different parse actions
           for the same parsing pattern, using copies of the original parse element."""
        cpy = copy.copy( self )
        cpy.parseAction = self.parseAction[:]
        cpy.ignoreExprs = self.ignoreExprs[:]
        if self.copyDefaultWhiteChars:
            cpy.whiteChars = ParserElement.DEFAULT_WHITE_CHARS
        return cpy
def copy ( self ) : cpy = copy . copy ( self ) cpy . parseAction = self . parseAction [ : ] cpy . ignoreExprs = self . ignoreExprs [ : ] if self . copyDefaultWhiteChars : cpy . whiteChars = ParserElement . DEFAULT_WHITE_CHARS return cpy