Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 7
    Your Celsius class is going to infinitely recurse when setting (which means upon instantiation). Commented Sep 23, 2018 at 12:25
  • 1
    @Ted Petrou I Didn't get you? How it will infinitely recurse when setting? Commented Sep 23, 2018 at 12:37
  • 1
    People are asking how does it work not why it works? @ShengBi Commented Feb 7, 2019 at 17:53
  • 2
    compared to the top voted answers, this one is designed for humans; thanks. Commented May 18, 2020 at 0:06
  • 2
    You should make the change of both temperature getter and setter method from self.temperature to self._temperature, else it's running recursively. Commented Sep 27, 2021 at 8:13