[issue1351] Add getsize() to io instances

Martin v. Löwis report at bugs.python.org
Sun Oct 28 18:44:25 CET 2007


Martin v. Löwis added the comment:

I'm skeptical:

- If you add getsize, why not getlastchangeddate, getowner, getpermissions?

- in general, streams (which really is the interface for file-like
objects) don't have the notion of "size"; only some do.

- what is the purpose of the f.tell fragment? ie. why could that work
when fstat doesn't?

----------
nosy: +loewis

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1351>
__________________________________


More information about the Python-bugs-list mailing list