4 ms·
I'm not sure any committee could agree as to what defines a filelike object (does it implement seek?) In addition you'd need an IRO (interface resolution order
by justanotherbody 11y ago
I'm not sure any committee could agree as to what defines a filelike object (does it implement seek?)
In addition you'd need an IRO (interface resolution order) if you truly intended to prove everything would work
To say nothing of accidentally implementing an interface and getting an error because if it
Doesn't sound like my kind of python...
- Retra 11y ago>I'm not sure any committee could agree as to what defines a filelike object (does it implement seek?) You step back a layer of abstraction. Maybe it implements seek, maybe it doesn't. Either way it implements has_seek.
- aidenn0 11y agoYou have a seekable filelike interface that is a superset of the base filelike interface.