def __new__(cls, data, blksize): obj = BigFile.__new__(cls, blksize) obj.datab = data.view(uint8) return obj
def __new__(cls, head, blksize): obj = BigFile.__new__(cls, blksize) obj.head = head obj.storev = [] return obj
def __new__(cls, blksize): obj = BigFile.__new__(cls, blksize) obj.cycle = 0 return obj
def __new__(cls, obj_4del, blksize): obj = BigFile.__new__(cls, blksize) obj.obj_4del = obj_4del obj.marker_list = [] return obj
def __new__(cls, path_or_fd, blksize): # XXX pass flags/mode as args to ctor ? f = FileIO(path_or_fd, 'r+') obj = BigFile.__new__(cls, blksize) obj.f = f return obj