[New-bugs-announce] [issue11476] StreamHandler code broken by change of parameter name

follower report at bugs.python.org
Sat Mar 12 18:12:48 CET 2011

New submission from follower <bugs.python.org at rancidbacon.com>:

The following change broke pre-existing code that used "strm" as the parameter name (as documented http://docs.python.org/release/2.6.6/library/logging.html#streamhandler):


The parameter name was changed with no documentation note that it had changed in 2.7:


This breaks existing code with the error:

TypeError: __init__() got an unexpected keyword argument 'strm'

I encountered it in pyres but it broke Ubuntu bug reporting too:


assignee: docs at python
components: Documentation, Library (Lib)
messages: 130691
nosy: docs at python, follower
priority: normal
severity: normal
status: open
title: StreamHandler code broken by change of parameter name
type: behavior
versions: Python 2.7

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list