Python class static methods
Python class static methods Question: I want to create a kind of utility class which contains only static methods which are callable by the name class prefix. Looks like I’m doing something wrong 🙂 Here is my small class: class FileUtility(): @staticmethod def GetFileSize(self, fullName): fileSize = os.path.getsize(fullName) return fileSize @staticmethod def GetFilePath(self, fullName): filePath …