Very stupid question.

Sebastjan Trepca trepca at gmail.com
Thu Mar 30 19:56:41 CEST 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...
>
> import os
>
> os.stat(path).st_size
>
> really not elegant or OO.
>
>
True.

--
Sebastjan
http://www.trepca.si/blog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20060330/79868ad8/attachment.html>


More information about the Python-list mailing list