[docs] [issue26158] File truncate() not defaulting to current position as documented

Eryk Sun report at bugs.python.org
Tue Jan 19 12:46:56 EST 2016

Eryk Sun added the comment:

Serhiy, why doesn't truncate do a seek(0, SEEK_CUR) to synchronize the buffer's file pointer before calling its truncate method? This also affects writing in "+" modes when the two file pointers are out of sync.

nosy: +eryksun

Python tracker <report at bugs.python.org>

More information about the docs mailing list