Very stupid question.

Benji York benji at benjiyork.com
Thu Mar 30 13:09:49 EST 2006


On 3/30/06, *Sullivan Zheng* <sullivanz.pku at gmail.com> wrote:
 >     Wow, seems I am not that supid. Why python does not include this
 >     function in the file object. It is almost a tradition in other
 >     languages...

 >     really not elegant or OO.

A file isn't an object.

You can get a "file object" by opening a file (on disk), but it
doesn't make much sense to have to open a file just to see how big it
is.
--
Benji York



More information about the Python-list mailing list