(via diveintomark)
In the simplest case, a file-like object is any object with a read method with an optional size parameter, which returns a string.
Nothing new here, but none the less an nice motivating discussion on dynamic binding and polymorphism.
Posted to OOP by Ehud Lamm on 1/3/02; 12:35:50 PM
|