Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
test whether the given string is all zeros

        def zeros(s):
    """
    test whether the given string is all zeros
    """
    return (s == "\0" * len(s))
        


src/l/o/lotro-HEAD/dat.py   lotro(Download)
import struct
 
from utils import dword, zeros
 
 
        f.seek(offset)
        row = f.read(0x08)
        assert zeros(row)
 
        # sub-directories