Closed HolQue closed 3 months ago
The class CConfig() defines variables as class variables (not instance variables).
CConfig()
Some of them are accessed with self instead of the class name, e.g.: self.bConfigLoaded, self.sConfigName, self.sProjectName ...
self
self.bConfigLoaded, self.sConfigName, self.sProjectName
Is there a certain reason to do it in this way? Usually recommend is to use the class name for class variables: CConfig.bConfigLoaded.
CConfig.bConfigLoaded
Hello Holger,
I move the class variables into the constructor method __init__() of CConfig() class via commit e1e0c206e8ca.
__init__()
Thank you, Son
Ready for sprint 0.13.0 [09.08.24](jsonpreprocessor / tsm)
The class
CConfig()
defines variables as class variables (not instance variables).Some of them are accessed with
self
instead of the class name, e.g.:self.bConfigLoaded, self.sConfigName, self.sProjectName
...Is there a certain reason to do it in this way? Usually recommend is to use the class name for class variables:
CConfig.bConfigLoaded
.