def __len__(self): if self._len is None: log.debug("Try not to use len(reader) as it takes extra time") self._len = fileCountLines( self._filename + ".index" ) - self._leadingLinesCount return self._len
def __len__(self) -> int: if self._len is None: log.debug("Try not to use len(reader) as it takes extra time") self._len = fileCountLines( self._filename + ".index" ) - self._leadingLinesCount return self._len
def __len__(self): from pyglossary.file_utils import fileCountLines if self._len is None: log.debug("Try not to use len(reader) as it takes extra time") self._len = fileCountLines(self._filename, newline="\nmsgid") return self._len
def __len__(self): if self._wordCount is None: log.debug("Try not to use len(reader) as it takes extra time") self._wordCount = fileCountLines( self._filename, newline="\n\n", ) - self._leadingLinesCount return self._wordCount
def __len__(self): if self._len is None: log.warning('Try not to use len(reader) as it takes extra time') self._len = fileCountLines( self._filename, newline='\nmsgid', ) return self._len
def __len__(self): from pyglossary.file_utils import fileCountLines if self._wordCount is None: log.debug("Try not to use len(reader) as it takes extra time") self._wordCount = fileCountLines( self._filename, newline="\nmsgid", ) return self._wordCount
def __len__(self): from pyglossary.file_utils import fileCountLines if self._len is None: log.warning('Try not to use len(reader) as it takes extra time') self._len = fileCountLines( self._filename, newline='\nmsgid', ) return self._len
def __len__(self) -> int: from pyglossary.file_utils import fileCountLines if self._wordCount is None: if hasattr(self._file, "compression"): return 0 log.debug("Try not to use len(reader) as it takes extra time") self._wordCount = fileCountLines(self._filename) - \ self._leadingLinesCount return self._wordCount + len(self._resFileNames)
def __len__(self): from pyglossary.file_utils import fileCountLines if self._len is None: log.debug('Try not to use len(reader) as it takes extra time') self._len = fileCountLines( self._filename, newline='\nmsgid', ) return self._len
def __len__(self): if self._len is None: log.warning('Try not to use len(reader) as it takes extra time') self._len = fileCountLines( self._filename) - self._leadingLinesCount return self._len
def __len__(self) -> int: if self._wordCount is None: log.debug("Try not to use len(reader) as it takes extra time") self._wordCount = fileCountLines(self._filename) - \ self._leadingLinesCount return self._wordCount + len(self._resFileNames)
def __len__(self): if self._len is None: log.warning('Try not to use len(reader) as it takes extra time') self._len = fileCountLines(self._filename) - self._leadingLinesCount return self._len
def __len__(self): if self._wordCount is None: log.debug("Try not to use len(reader) as it takes extra time") self._wordCount = fileCountLines(self._filename) - \ self._leadingLinesCount return self._wordCount + len(self._resFileNames)
def __len__(self): if self._wordCount is None: log.debug('Try not to use len(reader) as it takes extra time') self._wordCount = fileCountLines(self._filename) - \ self._leadingLinesCount return self._wordCount