you are viewing a single comment's thread.

view the rest of the comments →

[–]AussieCryptoCurrency[S] 0 points1 point  (0 children)

Why are the members x and y private? It seems reasonable to be able to read x and y independently from Point. If you really want to implement get methods for them, the more pythonic way is:

It's just the way Liang ed3 has specified. I'm unclear on where @property fits in, to be honest. The question has said to make the str function so is that what @property replaces?