__init__ constructor

On this page

init

Initializes a new instance of TextReplacement.

def __init__(self, index, original, replacement):
    ...
Parameter Type Description
index int Index of a matched text within source string.
original str Original matched string.
replacement str String, replacing OriginalText in source string.

See Also

On this page