News for hackers. Stuff that matters.
Re:When being idiomatic wears you out by krakensden on Saturday August 27, 2011 @01:20PM (#2931938)
The file protocol is for generic streams, but you could seek to the end and then call tell().

If you just want to know the size of a file and don't want to write to it, os.stat() will do what you want.

There are no comments on this comment yet.