types - Python: TypeError: 'float' object is not callable -


I am trying to get involved in 2 strings using this code:

  Def __get_temp (self): return float (self.ask ('rs') def __set_temp (auto, temporary): set = ('ss' + delegate (temporary)) stat = self.ask (set) returns self Check (stat) temp = property (__ get_temp, __set_temp)  

Together, I send a signal on a serial bus using PyVisa, however, when I try to call the function I get the

  traceback (the most recent call final): file "& lt; pyshell # 4" gt; Line 1, & lt; Module & gt; Chil.temp (13) TypeError: The 'float' object is not worth the corner  

I have tried to look around for the details of this error, but none of them have any meaning is. Anyone know what is happening?

It seems that you are trying to set properties temporarily, but do you really do Are getting assets and then trying to call it as function with parameter 13. The syntax for setting is:

  chil.temp = 13  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -