def eof(f, strict=False):
    """
    Standard EOF function.
    
    Return ``True`` if the the marker is at the end of the file.
    If ``strict==True``, only return ``True`` if the marker is exactly at the end of file; otherwise, return ``True`` if it's at the end of further.
    """
    p=f.tell()
    f.seek(0,2)
    ep=f.tell()
    f.seek(p)
    return (ep==p) or (ep<=p and not strict)