Avatar ·

¿Cómo hacer una propiedad estática de la clase en Python?

📁 python, Error: Análisis de errores (SyntaxError, TypeError, etc.)

Intento esto:

   class   ChatCodes : _Chat =  'CHT'   @property   def   chat  (self):  return  self._chat 

Si uso esto:

   print  (ChatCodes.chat +  'ANY_STR' ) 

entonces aparece un error:

unsupported operand type(s) for +: 'property' and 'str'

¿Cómo crear una propiedad estática?