file size 'mystery'

Sven Brandt sven_NOSPAM at manastar.de
Wed May 21 05:48:40 EDT 2003


george young wrote:
[...]
> % ls -l .bashrc
> -rw-r--r--    1 gry      users        2371 Jan 29 15:21 .bashrc
> % python
> 
>>>>import os
>>>>s=os.stat('.bashrc')
>>>>s.st_size
> 
> 2371L

You are right for this case. But I left out an important part: the 
"file" is an file-object of Zope (it does not exist in the FS). So I can 
not use the os module of python.

Regards
Sven





More information about the Python-list mailing list