Greg Ewing <greg.ewing <at> canterbury.ac.nz> writes:
> 
> Anything else such as peek() that doesn't explicitly
> mention the buffer should fit into the abstraction
> properly.

peek() doesn't "fit into the abstraction" since it doesn't even exist on raw
streams.

While buffered and non-buffered streams have a reasonably similar API, expecting
them to behave the same in all circumstances is IMO unrealistic.


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