modulefinder.AddPackagePath()

modulefinder.AddPackagePath(pkg_name, path) Record that the package named pkg_name can be found in the specified path.

mmap.mmap.write_byte()

write_byte(byte) Write the integer byte into memory at the current position of the file pointer; the file position is advanced by 1. If the mmap was created with ACCESS_READ, then writing to it will raise a TypeError exception.

mmap.mmap.write()

write(bytes) Write the bytes in bytes into memory at the current position of the file pointer; the file position is updated to point after the bytes that were written. If the mmap was created with ACCESS_READ, then writing to it will raise a TypeError exception. Changed in version 3.5: Writable bytes-like object is now accepted.

mmap.mmap.tell()

tell() Returns the current position of the file pointer.

mmap.mmap.size()

size() Return the length of the file, which can be larger than the size of the memory-mapped area.

mmap.mmap.seek()

seek(pos[, whence]) Set the file’s current position. whence argument is optional and defaults to os.SEEK_SET or 0 (absolute file positioning); other values are os.SEEK_CUR or 1 (seek relative to the current position) and os.SEEK_END or 2 (seek relative to the file’s end).

mmap.mmap.rfind()

rfind(sub[, start[, end]]) Returns the highest index in the object where the subsequence sub is found, such that sub is contained in the range [start, end]. Optional arguments start and end are interpreted as in slice notation. Returns -1 on failure. Changed in version 3.5: Writable bytes-like object is now accepted.

mmap.mmap.resize()

resize(newsize) Resizes the map and the underlying file, if any. If the mmap was created with ACCESS_READ or ACCESS_COPY, resizing the map will raise a TypeError exception.

mmap.mmap.read_byte()

read_byte() Returns a byte at the current file position as an integer, and advances the file position by 1.

mmap.mmap.readline()

readline() Returns a single line, starting at the current file position and up to the next newline.