Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8621

Python • Re: How to print current value of some variables inside a class

$
0
0
You could bypass the problem with 'too fast measure' by providing the values in one call

Code:

 def values(self):    self.measure()    return {'humidity': self._humidity, 'temperature': self._temperature}

Statistics: Posted by ghp — Sat May 10, 2025 6:36 am



Viewing all articles
Browse latest Browse all 8621

Trending Articles