[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):

http://hg.python.org/cpython/diff/7391436d8a74/Lib/logging/__init__.py

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

http://docs.python.org/library/logging.html#stream-handler  

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:

https://bugs.launchpad.net/ubuntu/+source/launchpad-integration/+bug/702455

----------
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>
<http://bugs.python.org/issue11476>
_______________________________________


More information about the New-bugs-announce mailing list