I try to load a file in memory with this:
import mmap
with open(path+fileinput+'example.txt', 'rb') as f:
fileinput = mmap.mmap(f.fileno(), 0, prot=mmap.PROT_READ)
When I run the code the error:
AttributeError: 'module' object has no attribute 'PROT_READ'