Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: