|
|
|
|
|
by orangecat
5031 days ago
|
|
With duck typing, that shouldn't matter. Lots of methods in the Python standard library take "file-like objects" that have read() methods and no common superclass, and that works fine without read being a top-level function. |
|