[New-bugs-announce] [issue24940] RotatingFileHandler uses tell in non-binary mode to determine size of the file in bytes

Ilya Kulakov report at bugs.python.org
Wed Aug 26 05:18:02 CEST 2015


New submission from Ilya Kulakov:

According to the most recent documentation:

    Return the current stream position as an opaque number. The number does not usually represent a number of bytes in the underlying binary storage.

Therefore stream should be opened as 'ab' by using value of the encoding argument or sys.getdefaultencoding if it's None.

----------
messages: 249177
nosy: Ilya.Kulakov
priority: normal
severity: normal
status: open
title: RotatingFileHandler uses tell in non-binary mode to determine size of the file in bytes
versions: Python 2.7, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24940>
_______________________________________


More information about the New-bugs-announce mailing list