try_parse method

On this page

try_parse

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

def try_parse(cls, s, point):
    ...
Parameter Type Description
s str A string containing a point to convert.
point Point When the method returns, contains the Point instance equivalent to the value specified in s if conversion succeeded; otherwise, None.

Returns: bool: True if s was converted successfully; otherwise, False.

See Also

On this page