__init__ constructor

On this page

init

Initializes a new instance of the XmpRational class.

def __init__(self, numerator, denominator):
    ...
Parameter Type Description
numerator int The numerator.
denominator int The denominator.

init

Initializes a new instance of the XmpBoolean class.

def __init__(self, value):
    ...
Parameter Type Description
value str The value.
Raises Description
ValueError Invalid string value.

See Also

On this page