(self, size=-1)
return self._buffer.peek(size)
Return buffered data without advancing the file position.

        Always returns at least one byte of data, unless at EOF.
        The exact number of bytes returned is unspecified.
Return buffered data without advancing the file position.
Return buffered data without advancing the file position .
def peek(self, size=-1):
        """Return buffered data without advancing the file position.

        Always returns at least one byte of data, unless at EOF.
        The exact number of bytes returned is unspecified.
        """
        self._check_can_read()
        # Relies on the undocumented fact that BufferedReader.peek() always
        # returns at least one byte (except at EOF)
        return self._buffer.peek(size)
def peek ( self , size = - 1 ) : self . _check_can_read ( ) # Relies on the undocumented fact that BufferedReader.peek() always # returns at least one byte (except at EOF) return self . _buffer . peek ( size )