Scott David Daniels <Scott.Daniels <at> Acm.Org> writes:
> 
> MRAB wrote:
> > I was thinking along the lines of:
> >     def peek(self, size=None, block=True)
> > If 'block' is True then return 'size' bytes, unless the end of the
> > file/stream is reached; if 'block' is False then return up to 'size'
> > bytes, without blocking....
> 
> I tend to prefer zero-ish defaults, how about:
>      def peek(self, size=None, nonblocking=False)

Since blocking and non-blocking are already used to refer to different types of
raw streams, another verb should be found for this option.


Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to