(self, num)
return b''.join(self._readahead[:num])
Return next num characters to be read; never returns more, fewer only at EOF.
Return next num characters to be read; never returns more, fewer only at EOF.
Return next num characters to be read ; never returns more fewer only at EOF .
def peek(self, num):
        """Return next num characters to be read; never returns more, fewer only at EOF."""
        to_read = num - len(self._readahead)
        if to_read > 0:
            with safe_io():
                self._readahead.extend(iterchar(self._fhandle.read(to_read)))
        return b''.join(self._readahead[:num])
def peek ( self , num ) : to_read = num - len ( self . _readahead ) if to_read > 0 : with safe_io ( ) : self . _readahead . extend ( iterchar ( self . _fhandle . read ( to_read ) ) ) return b'' . join ( self . _readahead [ : num ] )