This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients docs@python, fridrik, terry.reedy
Date 2010-08-04.23:28:38
SpamBayes Score 8.962529e-05
Marked as misclassified No
Message-id <1280964534.58.0.652153352527.issue9512@psf.upfronthosting.co.za>
In-reply-to
Content
I presume your report is about the fact that the mode is 'a' even though you specified 'a+'. The answer is this block from RotatingFileHandler.__init__ (3.1.2, but presume same for 2.x):

       if maxBytes > 0:
            mode = 'a' # doesn't make sense otherwise!

I do not understand the comment, but there it is. So

DOC PATCH In 15.6.12.5. RotatingFileHandler, replace
"If mode is not specified, 'a' is used." with
"If mode is not specified or if maxBytes > 0, the mode is 'a'."
History
Date User Action Args
2010-08-04 23:28:54terry.reedysetrecipients: + terry.reedy, docs@python, fridrik
2010-08-04 23:28:54terry.reedysetmessageid: <1280964534.58.0.652153352527.issue9512@psf.upfronthosting.co.za>
2010-08-04 23:28:38terry.reedylinkissue9512 messages
2010-08-04 23:28:38terry.reedycreate