try_parse method
Leave feedback
On this page
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.
- class
Point
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.