[prev in list] [next in list] [prev in thread] [next in thread]
List: python-list
Subject: Re: get_file_size
From: martin () v ! loewis ! de (Martin v ! =?iso-8859-15?q?L=F6wis?=)
Date: 2003-06-30 3:41:44
[Download RAW message or body]
"Egor Bolonev" <ebolonev@mail.ru> writes:
> How about that?
> f=open('1','wb')
> f.write(something)
> print len(f)
> Should I close file for get it size or should I write a C-like function with
> seek(end),tell, seek(old)?
No. You should use os.fstat, or os.stat if you still remember the file
name.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic