parse method
Leave feedback
On this page
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. |
- 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.