parse method

On this page

parse

Converts the string representation of a point to its class equivalent.

def parse(cls, s):
    ...
Parameter Type Description
s str A string that contains a point to convert.

Returns: Point: An instance of Point that is equivalent to the value specified in s.

Raises Description
ValueError s does not represent a point in a valid format.

See Also

On this page