We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

file.tell

tell( )

Return the file’s current position, like stdio‘s ftell().

Note: On Windows, file.tell can return illegal values (after an fgets()) when reading files with Unix-style line-endings. Use binary mode ('rb') to circumvent this problem.